fix: remove whitespace for linter
This commit is contained in:
@@ -152,7 +152,6 @@ func (a Attacker) handleRedirect(stream *cameradar.Stream, resHeaders base.Heade
|
|||||||
}
|
}
|
||||||
|
|
||||||
if location.Hostname() != "" {
|
if location.Hostname() != "" {
|
||||||
|
|
||||||
addr, err := netip.ParseAddr(location.Hostname())
|
addr, err := netip.ParseAddr(location.Hostname())
|
||||||
if err == nil {
|
if err == nil {
|
||||||
stream.Address = addr
|
stream.Address = addr
|
||||||
@@ -160,7 +159,6 @@ func (a Attacker) handleRedirect(stream *cameradar.Stream, resHeaders base.Heade
|
|||||||
}
|
}
|
||||||
|
|
||||||
if location.Port() != "" {
|
if location.Port() != "" {
|
||||||
|
|
||||||
port, err := strconv.Atoi(location.Port())
|
port, err := strconv.Atoi(location.Port())
|
||||||
if err == nil {
|
if err == nil {
|
||||||
if port >= 0 && port <= 65535 {
|
if port >= 0 && port <= 65535 {
|
||||||
|
|||||||
Reference in New Issue
Block a user