30 #define VALID_NICKNAME_CHARS \
31 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
33 #define MAX_NICKNAME_LEN 19
36 #define SETTING_ENABLED "Enabled"
37 #define SETTING_DIRMIRROR "DirectoryMirror"
38 #define SETTING_NICKNAME "Nickname"
39 #define SETTING_ORPORT "ORPort"
40 #define SETTING_DIRPORT "DirPort"
41 #define SETTING_CONTACT "ContactInfo"
42 #define SETTING_EXITPOLICY "ExitPolicy"
43 #define SETTING_BANDWIDTH_RATE "BandwidthRate"
44 #define SETTING_BANDWIDTH_BURST "BandwidthBurst"
45 #define SETTING_BRIDGE_RELAY "BridgeRelay"
46 #define SETTING_NONEXIT_RELAY "NonExitRelay"
47 #define SETTING_ENABLE_UPNP "EnableUPnP"
48 #define SETTING_RELAY_BANDWIDTH_RATE "RelayBandwidthRate"
49 #define SETTING_RELAY_BANDWIDTH_BURST "RelayBandwidthBurst"
50 #define SETTING_PUBLISH_SERVER_DESCRIPTOR "PublishServerDescriptor"
62 #if defined(Q_OS_WIN32)
83 QHash<QString, QString>
86 QHash<QString, QString> conf;
109 QString::number(
localValue(SETTING_BANDWIDTH_RATE).toUInt()) +
" bytes");
112 QString::number(
localValue(SETTING_BANDWIDTH_BURST).toUInt()) +
" bytes");
118 if ((contact == defaultContact) ||
150 QStringList resetKeys;
159 if (torVersion >= 0x020001) {
182 quint16 ORPort, DirPort;
215 if (
torControl()->getTorVersion() >= 0x020001) {
242 return (orPort.toUInt() > 0);
417 #if defined(USE_MINIUPNPC)
429 #if defined(USE_MINIUPNPC)