ginuerzh / gost

GO Simple Tunnel - a simple tunnel written in golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

使用yaml配置文件无法启动

wander3r opened this issue · comments

commented

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

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

commented

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