mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-07 08:07:42 +00:00
net/portmapper: remove GITHUB_ACTIONS check
It's now redundant. Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
cf855e8988
commit
48bdffd395
@ -14,7 +14,6 @@
|
|||||||
"io"
|
"io"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -248,7 +247,7 @@ func (c *Client) listenPacket(ctx context.Context, network, addr string) (net.Pa
|
|||||||
// create listening sockets. Such sockets are vulnerable to
|
// create listening sockets. Such sockets are vulnerable to
|
||||||
// routing loops, but it's tests that don't set up routing loops,
|
// routing loops, but it's tests that don't set up routing loops,
|
||||||
// so we don't care.
|
// so we don't care.
|
||||||
if c.testPxPPort != 0 || c.testUPnPPort != 0 || os.Getenv("GITHUB_ACTIONS") == "true" {
|
if c.testPxPPort != 0 || c.testUPnPPort != 0 {
|
||||||
var lc net.ListenConfig
|
var lc net.ListenConfig
|
||||||
return lc.ListenPacket(ctx, network, addr)
|
return lc.ListenPacket(ctx, network, addr)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user