Skip to content
This repository was archived by the owner on Jun 7, 2024. It is now read-only.

Commit 6ba1efc

Browse files
committed
fix: do not recognise listen_addr
1 parent d2ec41f commit 6ba1efc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
type configModel struct {
44
ForwardRules []string `yaml:"rules,omitempty"`
5-
ListenAddr string `yaml:"listen_addr.omitempty"`
5+
ListenAddr string `yaml:"listen_addr,omitempty"`
66
EnableSocks bool `yaml:"enable_socks5,omitempty"`
77
SocksAddr string `yaml:"socks_addr,omitempty"`
88
AllowAllHosts bool `yaml:"allow_all_hosts,omitempty"`

config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
listen_addr: 127.0.0.1:114514
1+
listen_addr: :11451
22
enable_socks5: true
33
socks_addr: 127.0.0.1:40000
44
allow_all_hosts: true

sample.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
listen_addr: 127.0.0.1:114514
1+
listen_addr: 127.0.0.1:11451
22
enable_socks5: true
33
socks_addr: 127.0.0.1:40000
44

0 commit comments

Comments
 (0)