removing peer cache

This commit is contained in:
afeiszli
2022-02-01 23:30:10 -05:00
parent 80dfdaa8fb
commit 7c4e8b2b4a
3 changed files with 14 additions and 23 deletions

View File

@@ -199,7 +199,7 @@ func GetNodePeers(networkName string, excludeRelayed bool) ([]models.Node, error
if len(endpointarr) == 2 {
port, err := strconv.Atoi(endpointarr[1])
if err == nil {
peer.Endpoint = endpointarr[0]
// peer.Endpoint = endpointarr[0]
peer.ListenPort = int32(port)
}
}
@@ -253,7 +253,7 @@ func GetPeersList(networkName string, excludeRelayed bool, relayedNodeAddr strin
if err == nil && peerNode.UDPHolePunch == "yes" {
for _, nodepeer := range nodepeers {
if nodepeer.Address == peerNode.Address {
peerNode.Endpoint = nodepeer.Endpoint
// peerNode.Endpoint = nodepeer.Endpoint
peerNode.ListenPort = nodepeer.ListenPort
}
}