diff --git a/config/config.go b/config/config.go index 7c247dd..cc9cec1 100644 --- a/config/config.go +++ b/config/config.go @@ -10,8 +10,9 @@ import ( ) type EntryConfig struct { - NostrRelays []string `env:"NOSTR_RELAYS" envSeparator:";"` - PublicAddress string `env:"PUBLIC_ADDRESS"` + NostrRelays []string `env:"NOSTR_RELAYS" envSeparator:";"` + PublicAddress string `env:"PUBLIC_ADDRESS"` + PublicAddressBind string `env:"PUBLIC_ADDRESS_BIND"` } type ExitConfig struct { diff --git a/socks5/socks5.go b/socks5/socks5.go index dca76a0..2667481 100644 --- a/socks5/socks5.go +++ b/socks5/socks5.go @@ -99,7 +99,7 @@ func New(conf *Config, pool *nostr.SimplePool, config *config.EntryConfig) (*Ser pool: pool, } if conf.entryConfig.PublicAddress != "" { - listener, err := NewTCPListener(conf.entryConfig.PublicAddress) + listener, err := NewTCPListener(conf.entryConfig.PublicAddressBind) if err != nil { return nil, err }