|
|
@ -1,5 +1,5 @@ |
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2013-2020, The PurpleI2P Project |
|
|
|
* Copyright (c) 2013-2022, The PurpleI2P Project |
|
|
|
* |
|
|
|
* |
|
|
|
* This file is part of Purple i2pd project and licensed under BSD3 |
|
|
|
* This file is part of Purple i2pd project and licensed under BSD3 |
|
|
|
* |
|
|
|
* |
|
|
@ -154,26 +154,25 @@ namespace win32 |
|
|
|
case eRouterStatusUnknown: s << "Unk"; break; |
|
|
|
case eRouterStatusUnknown: s << "Unk"; break; |
|
|
|
case eRouterStatusProxy: s << "Proxy"; break; |
|
|
|
case eRouterStatusProxy: s << "Proxy"; break; |
|
|
|
case eRouterStatusMesh: s << "Mesh"; break; |
|
|
|
case eRouterStatusMesh: s << "Mesh"; break; |
|
|
|
case eRouterStatusError: |
|
|
|
default: s << "Unk"; |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
if (i2p::context.GetError () != eRouterErrorNone) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
s << "\n Error"; |
|
|
|
|
|
|
|
switch (i2p::context.GetError ()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
s << "Err"; |
|
|
|
case eRouterErrorClockSkew: |
|
|
|
switch (i2p::context.GetError ()) |
|
|
|
s << " - Clock skew"; |
|
|
|
{ |
|
|
|
|
|
|
|
case eRouterErrorClockSkew: |
|
|
|
|
|
|
|
s << " - Clock skew"; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case eRouterErrorOffline: |
|
|
|
|
|
|
|
s << " - Offline"; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case eRouterErrorSymmetricNAT: |
|
|
|
|
|
|
|
s << " - Symmetric NAT"; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
default: ; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
case eRouterErrorOffline: |
|
|
|
|
|
|
|
s << " - Offline"; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case eRouterErrorSymmetricNAT: |
|
|
|
|
|
|
|
s << " - Symmetric NAT"; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
default: ; |
|
|
|
} |
|
|
|
} |
|
|
|
default: s << "Unk"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static void PrintMainWindowText (std::stringstream& s) |
|
|
|
static void PrintMainWindowText (std::stringstream& s) |
|
|
|