summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils.py b/utils.py
index d9d0319..8d66977 100644
--- a/utils.py
+++ b/utils.py
@@ -14,6 +14,8 @@ import mutex
import threading
from net.packet_out import *
+allowed_chars = "abcdefghijklmnoprstquvwxyzABCDEFGHIJKLMNOPRSTQUVWXYZ1234567890-_+=!@$%^&*();'<>,.?/~`|"
+
# Process a recieved ip address.
def parse_ip(a):
return "%s.%s.%s.%s" % ((a % 256),((a >> 8) % 256),((a >> 16) % 256),((a >> 24) % 256))