mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00
Fix race on tun conns, but still deadlocks if more than one connection is opened
This commit is contained in:
parent
79bcfbf175
commit
781cd7571f
3 changed files with 18 additions and 8 deletions
|
@ -265,7 +265,6 @@ func main() {
|
|||
// Start the TUN/TAP interface
|
||||
if listener, err := n.core.ConnListen(); err == nil {
|
||||
if dialer, err := n.core.ConnDialer(); err == nil {
|
||||
logger.Println("Got listener", listener, "and dialer", dialer)
|
||||
n.tuntap.Init(state, logger, listener, dialer)
|
||||
if err := n.tuntap.Start(); err != nil {
|
||||
logger.Errorln("An error occurred starting TUN/TAP:", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue