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

2.7版并不能加载配置文件 #342

Closed
fyhong opened this issue Jan 7, 2019 · 6 comments
Closed

2.7版并不能加载配置文件 #342

fyhong opened this issue Jan 7, 2019 · 6 comments

Comments

@fyhong
Copy link

fyhong commented Jan 7, 2019

2.7版本-C 参数不能加载配置文件,2.6版正常加载。

[root@izj6c7edxmv7twnjqthh50z ~]# ./gost -C ./gost2.json
-C string
configure file
-D enable debug log
-F value
forward address, can make a forward chain
-L value
listen address, can listen on multiple ports
-V print version
-obfs4-distBias
Enable obfs4 using ScrambleSuit style table generation

@ginuerzh
Copy link
Owner

ginuerzh commented Jan 8, 2019

我这边测试没问题,你的gost2.json内容是什么?

@fyhong
Copy link
Author

fyhong commented Jan 8, 2019

但是同一个配置文件,用2.6加载一点问题都没有。
[root@izj6c7edxmv7twnjqthh50z ~]# ./gost -C ./gost2.json
-C string
configure file
-D enable debug log
-F value
forward address, can make a forward chain
-L value
listen address, can listen on multiple ports
-V print version
-obfs4-distBias
Enable obfs4 using ScrambleSuit style table generation
[root@izj6c7edxmv7twnjqthh50z ~]# ./gost26 -C ./gost2.json
^C

@ginuerzh
Copy link
Owner

ginuerzh commented Jan 8, 2019

要看一下配置文件内容才能确定是什么问题。

@fyhong
Copy link
Author

fyhong commented Jan 8, 2019

我将网址用test.com代替了
{
"Routes": [
{ "ServeNodes": ["ss://chacha20:test@:19414"], "ChainNodes": ["ss://chacha20:test@test.com:8899"] },
{ "ServeNodes": ["ss://chacha20:test@:8201"], "ChainNodes": ["kcp://test2.com:9002"] },
{ "ServeNodes": ["ss://chacha20:test@:9096"] },
{ "ServeNodes": ["tls://:443", "kcp://:9002"] },
{ "ServeNodes": ["tcp://:9097/test23.com:8899"] },
{ "ServeNodes": ["ss://rc4-md5:12075@:8198", "ssu://rc4-md5:12075@:8198"] },
{ "ServeNodes": ["tcp://:8206/test33.com:8899"] },
{ "ServeNodes": ["ss://chacha20:11261@:9826", "ssu://chacha20:11261@:9826"] }
]
}

@fyhong
Copy link
Author

fyhong commented Jan 8, 2019

刚刚又测试了,不添加Routes,直接以下格式可以加载
{
"ServeNodes": [
"tcp://:9093/ip:port",
"tcp://:9929/ip2:port",
"tcp://:9930/ip3:port"
]
}

@f4nff
Copy link

f4nff commented Jan 8, 2019

这个我也遇到了,能用就没反馈,

hktalent pushed a commit to hktalent/gost that referenced this issue Oct 23, 2022
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

3 participants