-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 @@ -113,10 +113,12 @@ int SyncAuthentication::isAuthorized(QHostAddress peeraddress) { Config cfg("Security"); cfg.setGroup("Sync"); - QString allowedstr = cfg.readEntry("auth_peer","192.168.1.0"); - QHostAddress allowed; - allowed.setAddress(allowedstr); - uint auth_peer = allowed.ip4Addr(); +// QString allowedstr = cfg.readEntry("auth_peer","192.168.1.0"); + uint auth_peer = cfg.readNumEntry("auth_peer",0xc0a80100); + +// QHostAddress allowed; +// allowed.setAddress(allowedstr); +// uint auth_peer = allowed.ip4Addr(); uint auth_peer_bits = cfg.readNumEntry("auth_peer_bits",24); uint mask = auth_peer_bits >= 32 // shifting by 32 is not defined ? 0xffffffff : (((1<<auth_peer_bits)-1)<<(32-auth_peer_bits)); @@ -199,7 +201,6 @@ bool SyncAuthentication::checkPassword( const QString& password ) return FALSE; } - ServerPI::ServerPI( int socket, QObject *parent , const char* name ) : QSocket( parent, name ) , dtp( 0 ), serversocket( 0 ), waitsocket( 0 ) { |