Skip to content

Commit 2ec2c22

Browse files
committed
fix leading whitespace
fix leading whitespace Signed-off-by: Evan <[email protected]>
1 parent 9ef61f8 commit 2ec2c22

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

module.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ func getTCPListener(c context.Context, network string, host string, portRange st
4949
if !ok {
5050
return nil, fmt.Errorf("context is not a caddy.Context: %T", c)
5151
}
52-
52+
5353
na, err := caddy.ParseNetworkAddress(caddy.JoinNetworkAddress(network, host, portRange))
5454
if err != nil {
5555
return nil, err
5656
}
57-
57+
5858
addr := na.JoinHostPort(portOffset)
5959
network, host, port, err := caddy.SplitNetworkAddress(addr)
6060
if err != nil {
@@ -82,7 +82,7 @@ func getTLSListener(c context.Context, network string, host string, portRange st
8282
if err != nil {
8383
return nil, err
8484
}
85-
85+
8686
addr := na.JoinHostPort(portOffset)
8787
network, host, port, err := caddy.SplitNetworkAddress(addr)
8888
if err != nil {
@@ -121,7 +121,7 @@ func getUDPListener(c context.Context, network string, host string, portRange st
121121
if err != nil {
122122
return nil, err
123123
}
124-
124+
125125
addr := na.JoinHostPort(portOffset)
126126
network, host, port, err := caddy.SplitNetworkAddress(addr)
127127
if err != nil {
@@ -141,7 +141,7 @@ func getUDPListener(c context.Context, network string, host string, portRange st
141141
if network == "" {
142142
network = "udp"
143143
}
144-
144+
145145
var ap netip.AddrPort
146146

147147
// We can only return one listener and MagicDNS returns IPv4 addresses unless IPv4 is disabled
@@ -159,7 +159,7 @@ func getUDPListener(c context.Context, network string, host string, portRange st
159159
}
160160
}
161161
}
162-
162+
163163
// Second pass: look for IPv6 tsnet address if IPv6 was implicitly ("udp") or explicitly ("udp6") requested
164164
if !ap.IsValid() && (network == "udp" || network == "udp6") {
165165
for _, ip := range st.TailscaleIPs {
@@ -171,11 +171,11 @@ func getUDPListener(c context.Context, network string, host string, portRange st
171171
}
172172
}
173173
}
174-
174+
175175
if !ap.IsValid() {
176176
return nil, fmt.Errorf("no suitable Tailscale IP address found for UDP listener")
177177
}
178-
178+
179179
return s.Server.ListenPacket(network, ap.String())
180180
}
181181

0 commit comments

Comments
 (0)