Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssmanager -c config.json Can't Start with "method" in Config Only #542

Closed
RebelliousWhiz opened this issue May 29, 2021 · 2 comments
Closed

Comments

@RebelliousWhiz
Copy link

ssmanager -c config.json requires config.json to have all of the server, server_port, method, password.
But when you start ssmanager, you only want to define 'method' for generated ssservers.

When starting with 'method' in the config only

ssmanager -c config.json
thread 'main' panicked at 'loading config "config.json", `server`, `server_port`, `method`, `password` must be provided together', /home/jiayuan/.cargo/registry/src/github.com-1ecc6299db9ec823/shadowsocks-rust-1.11.0/bin/ssmanager.rs:142:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)

When starting with all the server, server_port, method, password in the config

ssmanager -c config.json
2021-05-29T16:52:11.816971193+08:00 INFO  shadowsocks 1.11.0
2021-05-29T16:52:11.818246475+08:00 INFO  shadowsocks manager server listening on 127.0.0.1:2000
2021-05-29T16:52:11.823563037+08:00 INFO  shadowsocks tcp server listening on 0.0.0.0:50000, inbound address 0.0.0.0:50000
2021-05-29T16:52:11.825131769+08:00 INFO  shadowsocks udp server listening on 0.0.0.0:50000

config.json:

{
    "server": "0.0.0.0",
    "server_port": 50000,
    "method": "aes-256-gcm",
    "password": "WhyMustPasswordMyLove",
    "server_host": "192.168.100.110",
    "manager_address": "127.0.0.1",
    "manager_port": 2000,
    "mode":"tcp_and_udp",
    "nameserver": "8.8.8.8,8.8.4.4"
}
@zonyitoo
Copy link
Collaborator

You should use command line parameter -m or --encrypt-method to set method for manager.

@RebelliousWhiz
Copy link
Author

Fair enough. I don't really need a config anyways.

Thanks for the reply!

zonyitoo added a commit that referenced this issue May 29, 2021
atkdef pushed a commit to atkdef/shadowsocks-rust that referenced this issue Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants