2
0
mirror of https://github.com/flotwig/spoofident synced 2025-08-22 01:57:44 +00:00

Fixing bug caused by Python's odd pwd policies

This commit is contained in:
Zach Bloomquist 2014-06-16 13:41:55 -04:00
parent 25f63d4cc1
commit c8257b82c3

View File

@ -1,4 +1,4 @@
from os import setuid,setgid
from os import setuid,setgid,path
from json import load
import dualstack
def handleIdent(fd):
@ -16,7 +16,8 @@ def validPort(port):
else:
return False
if __name__ == "__main__":
config=open('spoofident.json','r')
pwd=path.dirname(path.realpath(__file__))
config=open(pwd+'/spoofident.json','r')
settings=load(config)
config.close()
server = dualstack.MultipleSocketsListener(settings['listeners'])