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. 3
      shadowsocks/server.py

3
shadowsocks/server.py

@ -41,8 +41,11 @@ def main():
daemon.daemon_exec(config) daemon.daemon_exec(config)
try:
import resource import resource
logging.info('current process RLIMIT_NOFILE resource: soft %d hard %d' % resource.getrlimit(resource.RLIMIT_NOFILE)) 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