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

使用yaml配置文件无法启动 #1008

Open
wander3r opened this issue Jan 25, 2024 · 3 comments
Open

使用yaml配置文件无法启动 #1008

wander3r opened this issue Jan 25, 2024 · 3 comments

Comments

@wander3r
Copy link

gost版本:

mark@fred-virtual-machine:/tmp$ ./gost -V
gost 2.11.5 (go1.19.2 linux/amd64)

配置内容:

mark@fred-virtual-machine:/tmp$ cat a.yml 
services:
- name: service-0
  addr: ":8084"
  handler:
    type: http
  listener:
    type: tcp

启动失败:

mark@fred-virtual-machine:/tmp$ ./gost -C a.yml 
2024/01/25 13:46:18 main.go:53: invalid character 's' looking for beginning of value
@waloyn
Copy link

waloyn commented Jan 25, 2024

配置文件版本和可执行文件版本不匹配,gost是V2,配置文件是V3

@wander3r
Copy link
Author

V2版本不支持配置文件的方式吗?

@alfredcai
Copy link

https://github.com/go-gost/gost
v3的代码库

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