Skip to content

Commit 9ed0b64

Browse files
committed
lint: unsued var ipn/exit.go
1 parent 219feac commit 9ed0b64

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

intra/ipn/exit.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ const (
2626
fakeExitPort = "1337"
2727
)
2828

29-
var (
30-
fakeExitAddrPort = net.JoinHostPort(fakeExitAddr, fakeExitPort)
31-
)
32-
3329
// exit is a proxy that always dials out to the internet.
3430
type exit struct {
3531
NoDNS
@@ -45,7 +41,7 @@ type exit struct {
4541

4642
// NewExitProxy returns a new exit proxy.
4743
func NewExitProxy(ctx context.Context, c protect.Controller) *exit {
48-
return newExitProxy(Exit, fakeExitAddr, ctx, c)
44+
return newExitProxy(Exit, net.JoinHostPort(fakeExitAddr, fakeExitPort), ctx, c)
4945
}
5046

5147
func NewExitProxyWithID(id, addr string, ctx context.Context, c protect.Controller) *exit {

0 commit comments

Comments
 (0)