ginuerzh / gost

GO Simple Tunnel - a simple tunnel written in golang
MIT License
15.45k stars 2.42k forks source link

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

Open wander3r opened 5 months ago

wander3r commented 5 months ago

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 commented 5 months ago

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

wander3r commented 5 months ago

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

alfredcai commented 2 months ago

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