summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-07-18 03:11:17 (UTC)
committer llornkcor <llornkcor>2002-07-18 03:11:17 (UTC)
commit7fba4ce72b9201e3a04214c75a1031958090a618 (patch) (side-by-side diff)
tree77f7ea331fd38707f3c74dc5a67b47940ea36038
parent786393948f3cd5f67a48f44a7a40422636f4b46e (diff)
downloadopie-7fba4ce72b9201e3a04214c75a1031958090a618.zip
opie-7fba4ce72b9201e3a04214c75a1031958090a618.tar.gz
opie-7fba4ce72b9201e3a04214c75a1031958090a618.tar.bz2
attempt for change ip back to hex range from string
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/transferserver.cpp11
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)
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);
@@ -201,3 +203,2 @@ bool SyncAuthentication::checkPassword( const QString& password )
-
ServerPI::ServerPI( int socket, QObject *parent , const char* name )