Giter VIP home page Giter VIP logo

nssr's Introduction

nssr

Node.js client for ShadowsocksR

Install

$ npm install -g nssr

Usage

  Usage: nssr [options] [command]


  Options:

    -V, --version  output the version number
    -h, --help     output usage information


  Commands:

    init             initialize nssr
    add              add a server
    delete [server]  delete a server
    list             list servers
    start [server]   start server
    stop             stop server
    status           server status
    help [cmd]       display help for [cmd]

License

MIT license

nssr's People

Contributors

kokororin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nssr's Issues

Command failed

部分配置

    "protocol": "origin",
    "protocol_param": "",
    "obfs": "plain",
    "obfs_param": ""

错误信息

nssr start 6
Traceback (most recent call last):
  File "/home/joech/.nssr/lib/shadowsocks/local.py", line 81, in <module>
    main()
  File "/home/joech/.nssr/lib/shadowsocks/local.py", line 43, in main
    config = shell.get_config(True)
  File "/home/joech/.nssr/lib/shadowsocks/../shadowsocks/shell.py", line 299, in get_config
    check_config(config, is_local)
  File "/home/joech/.nssr/lib/shadowsocks/../shadowsocks/shell.py", line 129, in check_config
    encrypt.try_cipher(config['password'], config['method'])
  File "/home/joech/.nssr/lib/shadowsocks/../shadowsocks/encrypt.py", line 46, in try_cipher
    Encryptor(key, method)
  File "/home/joech/.nssr/lib/shadowsocks/../shadowsocks/encrypt.py", line 90, in __init__
    random_string(self._method_info[1]))
  File "/home/joech/.nssr/lib/shadowsocks/../shadowsocks/encrypt.py", line 119, in get_cipher
    return m[2](method, key, iv, op)
  File "/home/joech/.nssr/lib/shadowsocks/../shadowsocks/crypto/sodium.py", line 71, in __init__
    load_libsodium()
  File "/home/joech/.nssr/lib/shadowsocks/../shadowsocks/crypto/sodium.py", line 42, in load_libsodium
    raise Exception('libsodium not found')
Exception: libsodium not found
child_process.js:614
    throw err;
    ^

  Error: Command failed: /home/joech/.nssr/lib/shadowsocks/local.py -c /home/joech/.nss  r/servers/6.json --pid-file /home/joech/.nssr/nssr.pid --log-file /home/joech/.nssr/n  ssr.log -d start
  Traceback (most recent call last):
    File "/home/joech/.nssr/lib/shadowsocks/local.py", line 81, in <module>
      main()
    File "/home/joech/.nssr/lib/shadowsocks/local.py", line 43, in main
      config = shell.get_config(True)
    File "/home/joech/.nssr/lib/shadowsocks/../shadowsocks/shell.py", line 299, in get_  config
      check_config(config, is_local)
    File "/home/joech/.nssr/lib/shadowsocks/../shadowsocks/shell.py", line 129, in chec  k_config
      encrypt.try_cipher(config['password'], config['method'])
    File "/home/joech/.nssr/lib/shadowsocks/../shadowsocks/encrypt.py", line 46, in try  _cipher
      Encryptor(key, method)
    File "/home/joech/.nssr/lib/shadowsocks/../shadowsocks/encrypt.py", line 90, in __i  nit__
      random_string(self._method_info[1]))
    File "/home/joech/.nssr/lib/shadowsocks/../shadowsocks/encrypt.py", line 119, in ge  t_cipher
      return m[2](method, key, iv, op)
    File "/home/joech/.nssr/lib/shadowsocks/../shadowsocks/crypto/sodium.py", line 71,   in __init__
      load_libsodium()
    File "/home/joech/.nssr/lib/shadowsocks/../shadowsocks/crypto/sodium.py", line 42,   in load_libsodium
      raise Exception('libsodium not found')
  Exception: libsodium not found
  
  - child_process.js:574 checkExecSyncError
    child_process.js:574:11
  
  - child_process.js:611 Object.execSync
    child_process.js:611:13
  
  - Cli.js:272 Cli.module.exports.Cli.start
    [lib]/[nssr]/lib/Cli.js:272:20
  
  - nssr-start:3 Object.<anonymous>
    [lib]/[nssr]/bin/nssr-start:3:31
  
  - module.js:660 Module._compile
    module.js:660:30
  
  - module.js:671 Object.Module._extensions..js
    module.js:671:10
  
  - module.js:573 Module.load
    module.js:573:32
  
  - module.js:513 tryModuleLoad
    module.js:513:12
  
  - module.js:505 Function.Module._load
    module.js:505:3
  
  - module.js:701 Function.Module.runMain
    module.js:701:10

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.