mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-08 06:15:33 +00:00
Merge remote-tracking branch 'origin/config' into develop
This commit is contained in:
@@ -110,6 +110,10 @@ func (na *NetAddress) DialTimeout(timeout time.Duration) (net.Conn, error) {
|
||||
}
|
||||
|
||||
func (na *NetAddress) Routable() bool {
|
||||
if config.GetBool("local_routing") {
|
||||
return na.Valid()
|
||||
}
|
||||
|
||||
// TODO(oga) bitcoind doesn't include RFC3849 here, but should we?
|
||||
return na.Valid() && !(na.RFC1918() || na.RFC3927() || na.RFC4862() ||
|
||||
na.RFC4193() || na.RFC4843() || na.Local())
|
||||
|
||||
Reference in New Issue
Block a user