mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-06-20 09:57:42 +02:00
Two small changes to server.py that allow it to run on python2.2
This commit is contained in:
parent
274ee854d4
commit
42bc6d62db
@ -1,3 +1,4 @@
|
|||||||
|
from __future__ import generators # add yield for python2.2
|
||||||
import re, struct, socket, select, traceback, time
|
import re, struct, socket, select, traceback, time
|
||||||
if not globals().get('skip_imports'):
|
if not globals().get('skip_imports'):
|
||||||
import ssnet, helpers, hostwatch
|
import ssnet, helpers, hostwatch
|
||||||
@ -43,7 +44,7 @@ def _maskbits(netmask):
|
|||||||
|
|
||||||
|
|
||||||
def _shl(n, bits):
|
def _shl(n, bits):
|
||||||
return n * int(2**bits)
|
return n * long(2**bits)
|
||||||
|
|
||||||
|
|
||||||
def _list_routes():
|
def _list_routes():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user