Increase garbage collection on ios (#1981)

This commit is contained in:
pascal-fischer
2024-05-17 15:58:29 +02:00
committed by GitHub
parent d11b39282b
commit 50201d63c2
2 changed files with 7 additions and 0 deletions

View File

@ -487,6 +487,10 @@ func (conn *Conn) configureConnection(remoteConn net.Conn, remoteWgPort int, rem
return nil, err
}
if runtime.GOOS == "ios" {
runtime.GC()
}
if conn.onConnected != nil {
conn.onConnected(conn.config.Key, remoteRosenpassPubKey, ipNet.IP.String(), remoteRosenpassAddr)
}