Skip to content

unable to read config from stdin / /dev/stdin #2890

Description

@divinity76

Please answer these questions before submitting your issue. Thanks!

What version of shadowsocks-libev are you using?

shadowsocks-libev 3.3.4
(probably an outdated version, it's whatever ships with Ubuntu 20.04, but because nobody has complained here before about /dev/stdin, i presume nobody has fixed it either)

What operating system are you using?

Ubuntu 20.04

What did you do?

root@x2ratma:/home/hans# echo '{"server":["0.0.0.0"]}' | ss-server -c -
2022-04-22 09:21:46 ERROR: Invalid config path.
root@x2ratma:/home/hans# echo '{"server":["0.0.0.0"]}' | ss-server -c /dev/stdin
2022-04-22 09:22:30 ERROR: Invalid config path.

What did you expect to see?

loading the config, i guess?

What did you see instead?

ERROR: Invalid config path.

What is your config in detail (with all sensitive info masked)?

{"server":["0.0.0.0"]}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions