Skip to content

Commit

Permalink
multi: remove externalhosts field
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedawnallah committed Jan 29, 2025
1 parent f2e4082 commit 27e571d
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 542 deletions.
10 changes: 0 additions & 10 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,6 @@ const (
// keep in memory if no size is specified.
defaultBlockCacheSize uint64 = 20 * 1024 * 1024 // 20 MB

// defaultHostSampleInterval is the default amount of time that the
// HostAnnouncer will wait between DNS resolutions to check if the
// backing IP of a host has changed.
defaultHostSampleInterval = time.Minute * 5

defaultChainInterval = time.Minute
defaultChainTimeout = time.Second * 30
defaultChainBackoff = time.Minute * 2
Expand Down Expand Up @@ -330,7 +325,6 @@ type Config struct {
RawListeners []string `long:"listen" description:"Add an interface/port to listen for peer connections"`
RawExternalIPs []string `long:"externalip" description:"Add an ip:port to the list of local addresses we claim to listen on to peers. If a port is not specified, the default (9735) will be used regardless of other parameters"`
RawExternalDNSHostnameAddress string `long:"external-dns-hostname" description:"Specify a DNS hostname for the node's external address. If no port is provided, the default (9735) is used."`
ExternalHosts []string `long:"externalhosts" description:"Add a hostname:port that should be periodically resolved to announce IPs for. If a port is not specified, the default (9735) will be used."`
RPCListeners []net.Addr
RESTListeners []net.Addr
RestCORS []string `long:"restcors" description:"Add an ip:port/hostname to allow cross origin access from. To allow all origins, set as \"*\"."`
Expand Down Expand Up @@ -1180,10 +1174,6 @@ func ValidateConfig(cfg Config, interceptor signal.Interceptor, fileParser,
return nil, mkErr("NAT traversal cannot be used when " +
"listening is disabled")
}
if cfg.NAT && len(cfg.ExternalHosts) != 0 {
return nil, mkErr("NAT support and externalhosts are " +
"mutually exclusive, only one should be selected")
}

// Multiple networks can't be selected simultaneously. Count
// number of network flags passed; assign active network params
Expand Down
204 changes: 0 additions & 204 deletions netann/host_ann.go

This file was deleted.

Loading

0 comments on commit 27e571d

Please sign in to comment.