Permalink
Browse files

updated guest timeout to something real, changed the logging language…

… in bridge
  • Loading branch information...
1 parent e3d67ae commit 3dff25dc20f8d31d4fdfcc664b0a2eee346c4825 @progrium progrium committed Dec 27, 2010
Showing with 6 additions and 6 deletions.
  1. +2 −2 main.py
  2. +4 −4 pfsense/bridge.py
View
@@ -13,8 +13,8 @@
DOMAIN = 'hackerdojo.com'
MEMBER_DOWNLOAD = 0
MEMBER_UPLOAD = 0
-#GUEST_TIMEOUT = 86400 # 24 hours
-GUEST_TIMEOUT = 60
+GUEST_TIMEOUT = 57600 # 16 hours
+#GUEST_TIMEOUT = 60
GUEST_NAME = 'internet-guest*'
DEFAULT_REDIRECT = 'http://hackerdojo.com'
View
@@ -31,18 +31,18 @@ def HandleAuthPacket(self, pkt):
if not '*' in user:
member_cache[mac_address] = user
reply.code=packet.AccessAccept
- print "success: %s %s %s %s" % (mac_address, user, download, upload)
+ print "accept: %s %s %s %s" % (mac_address, user, download, upload)
except (urllib2.URLError, urllib2.HTTPError), e:
if hasattr(e, 'code') and e.code == 404:
reply.code=packet.AccessReject
- print "fail: %s" % mac_address
+ print "reject: %s" % mac_address
else:
if mac_address in member_cache:
reply.AddAttribute((14122,8), '0')
reply.AddAttribute((14122,7), '0')
- print "failover: %s %s" % (mac_address, member_cache[mac_address])
+ print "accept [failover]: %s %s" % (mac_address, member_cache[mac_address])
else:
- print "failover: %s" % mac_address
+ print "accept [failover]: %s" % mac_address
reply.code=packet.AccessAccept
self.SendReplyPacket(pkt.fd, reply)

0 comments on commit 3dff25d

Please sign in to comment.