Explorar el Código

Always close stream on lowprofile

Ettore Di Giacinto hace 3 años
padre
commit
719d7d125e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pkg/vpn/vpn.go

+ 1 - 1
pkg/vpn/vpn.go

@@ -224,7 +224,7 @@ func handleFrame(mgr streamManager, frame ethernet.Frame, c *Config, n *node.Nod
 	}
 
 	_, err = stream.Write(frame)
-	if c.lowProfile && err == nil {
+	if c.lowProfile {
 		return stream.Close()
 	}
 	return err