Skip to content

Commit

Permalink
delete setuid
Browse files Browse the repository at this point in the history
  • Loading branch information
henices committed Aug 18, 2013
1 parent df8f903 commit fb96ecd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tcpdns.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import traceback
import random
import optparse
import platform
from pylru import lrucache

try:
Expand Down Expand Up @@ -189,10 +188,6 @@ def handle(self):
print '>> Now you can set dns server to 127.0.0.1'

server = ThreadedUDPServer(('127.0.0.1', 53), ThreadedUDPRequestHandler)
# on my ubuntu uid is 1000, change it
# comment out below line on windows platform
if 'Windows' not in platform.system():
os.setuid(os.getuid())

server.serve_forever()
server.shutdown()
Expand Down

0 comments on commit fb96ecd

Please sign in to comment.