mirror of
https://github.com/fosrl/olm.git
synced 2026-02-07 21:46:40 +00:00
@@ -580,7 +580,7 @@ func (pm *PeerMonitor) checkHolepunchEndpoints() bool {
|
|||||||
anyStatusChanged := false
|
anyStatusChanged := false
|
||||||
|
|
||||||
for siteID, endpoint := range endpoints {
|
for siteID, endpoint := range endpoints {
|
||||||
logger.Debug("holepunchTester: testing endpoint for site %d: %s", siteID, endpoint)
|
// logger.Debug("holepunchTester: testing endpoint for site %d: %s", siteID, endpoint)
|
||||||
result := pm.holepunchTester.TestEndpoint(endpoint, timeout)
|
result := pm.holepunchTester.TestEndpoint(endpoint, timeout)
|
||||||
|
|
||||||
pm.mutex.Lock()
|
pm.mutex.Lock()
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ func (c *Client) ensureConnection() error {
|
|||||||
// TestPeerConnection checks if the connection to the server is working
|
// TestPeerConnection checks if the connection to the server is working
|
||||||
// Returns true if connected, false otherwise
|
// Returns true if connected, false otherwise
|
||||||
func (c *Client) TestPeerConnection(ctx context.Context) (bool, time.Duration) {
|
func (c *Client) TestPeerConnection(ctx context.Context) (bool, time.Duration) {
|
||||||
logger.Debug("wgtester: testing connection to peer %s", c.serverAddr)
|
// logger.Debug("wgtester: testing connection to peer %s", c.serverAddr)
|
||||||
if err := c.ensureConnection(); err != nil {
|
if err := c.ensureConnection(); err != nil {
|
||||||
logger.Warn("Failed to ensure connection: %v", err)
|
logger.Warn("Failed to ensure connection: %v", err)
|
||||||
return false, 0
|
return false, 0
|
||||||
|
|||||||
Reference in New Issue
Block a user