@ -32,6 +32,12 @@ try:
PIDFILE = cp.get("General","PIDFILE")
except:
PIDFILE = 'pid'
try:
IP = cp.get("General","IP")
IP = '127.0.0.1'
S5B_PROXY = cp.get("General","PROXY")
@ -3,6 +3,7 @@ import select
import socket
import threading
import random
import config
from Queue import Queue, Empty
MAGIC_PACKET = ""
@ -77,7 +78,7 @@ def get_local_ip():
address = queue.get(False)
except Empty:
pass
else:
address = [config.IP]
finally:
waiting = False
return address[0]