go-gost / gost

GO Simple Tunnel - a simple tunnel written in golang
https://gost.run
MIT License
4.39k stars 528 forks source link

使用yml配置文件无法启动 #402

Closed wander3r closed 10 months ago

wander3r commented 10 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
DBA-family commented 4 months ago

怎样解决的?