mirror of
https://github.com/whyvl/wireproxy.git
synced 2025-06-28 08:58:02 +02:00
send a keepalive after establishing a connection
This commit is contained in:
parent
6b83c00c46
commit
82047e419a
1 changed files with 3 additions and 0 deletions
|
@ -74,6 +74,9 @@ func StartWireguard(conf *DeviceConfig) (*VirtualTun, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sending a keepalive directly after connecting makes the wireproxy reachable instantly
|
||||||
|
dev.SendKeepalivesToPeersWithCurrentKeypair()
|
||||||
|
|
||||||
return &VirtualTun{
|
return &VirtualTun{
|
||||||
tnet: tnet,
|
tnet: tnet,
|
||||||
systemDNS: len(setting.dns) == 0,
|
systemDNS: len(setting.dns) == 0,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue