chore: remove unnecessary conversions (#2680)

This commit is contained in:
Håvard Anda Estensen
2024-01-09 17:39:16 +01:00
committed by GitHub
parent 5286cdafab
commit c6e99f10af
11 changed files with 14 additions and 14 deletions

View File

@@ -349,7 +349,7 @@ func EnableAutoRelayWithPeerSource(peerSource autorelay.PeerSource, opts ...auto
// forcing the local node to believe it is reachable externally.
func ForceReachabilityPublic() Option {
return func(cfg *Config) error {
public := network.Reachability(network.ReachabilityPublic)
public := network.ReachabilityPublic
cfg.AutoNATConfig.ForceReachability = &public
return nil
}
@@ -359,7 +359,7 @@ func ForceReachabilityPublic() Option {
// forceing the local node to believe it is behind a NAT and not reachable externally.
func ForceReachabilityPrivate() Option {
return func(cfg *Config) error {
private := network.Reachability(network.ReachabilityPrivate)
private := network.ReachabilityPrivate
cfg.AutoNATConfig.ForceReachability = &private
return nil
}