-rw-r--r-- | core/launcher/transferserver.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/core/launcher/transferserver.cpp b/core/launcher/transferserver.cpp index a6dab07..ed3e2c6 100644 --- a/core/launcher/transferserver.cpp +++ b/core/launcher/transferserver.cpp | |||
@@ -115,6 +115,8 @@ int SyncAuthentication::isAuthorized(QHostAddress peeraddress) | |||
115 | cfg.setGroup("Sync"); | 115 | cfg.setGroup("Sync"); |
116 | QString allowedstr = cfg.readEntry("auth_peer","192.168.1.0"); | 116 | // QString allowedstr = cfg.readEntry("auth_peer","192.168.1.0"); |
117 | QHostAddress allowed; | 117 | uint auth_peer = cfg.readNumEntry("auth_peer",0xc0a80100); |
118 | allowed.setAddress(allowedstr); | 118 | |
119 | uint auth_peer = allowed.ip4Addr(); | 119 | // QHostAddress allowed; |
120 | // allowed.setAddress(allowedstr); | ||
121 | // uint auth_peer = allowed.ip4Addr(); | ||
120 | uint auth_peer_bits = cfg.readNumEntry("auth_peer_bits",24); | 122 | uint auth_peer_bits = cfg.readNumEntry("auth_peer_bits",24); |
@@ -201,3 +203,2 @@ bool SyncAuthentication::checkPassword( const QString& password ) | |||
201 | 203 | ||
202 | |||
203 | ServerPI::ServerPI( int socket, QObject *parent , const char* name ) | 204 | ServerPI::ServerPI( int socket, QObject *parent , const char* name ) |