Browse Source

Merge pull request #130 from V-E-O/patch-1

fix import error of resource on windows
dev
破娃酱 8 years ago
committed by GitHub
parent
commit
0b94af0b7d
  1. 7
      shadowsocks/server.py

7
shadowsocks/server.py

@ -41,8 +41,11 @@ def main():
daemon.daemon_exec(config) daemon.daemon_exec(config)
import resource try:
logging.info('current process RLIMIT_NOFILE resource: soft %d hard %d' % resource.getrlimit(resource.RLIMIT_NOFILE)) import resource
logging.info('current process RLIMIT_NOFILE resource: soft %d hard %d' % resource.getrlimit(resource.RLIMIT_NOFILE))
except ImportError:
pass
if config['port_password']: if config['port_password']:
pass pass

Loading…
Cancel
Save