Skip to content

Commit

Permalink
cleanup: fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
parvit committed Oct 8, 2024
1 parent 16635c2 commit 554d1e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion workers/gateway/gateway_interface_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/Project-Faster/qpep/shared"
"github.com/Project-Faster/qpep/shared/configuration"
"github.com/Project-Faster/qpep/shared/logger"
gw "github.com/jackpal/gateway"
"net"
"net/url"
"regexp"
Expand Down Expand Up @@ -71,7 +72,7 @@ func getRouteListeningAddresses() []string {
}

func getRouteGatewayInterfaces() ([]int64, []string, error) {
defaultIP, err := gateway.DiscoverGateway()
defaultIP, err := gw.DiscoverGateway()
if err != nil {
logger.Panic("Could not discover default lan address and the requested one is not suitable, error: %v", err)
}
Expand Down
3 changes: 2 additions & 1 deletion workers/gateway/gateway_interface_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"github.com/Project-Faster/qpep/shared"
"github.com/Project-Faster/qpep/shared/logger"
gw "github.com/jackpal/gateway"
"net"
"net/url"
"strconv"
Expand All @@ -23,7 +24,7 @@ func getRouteListeningAddresses() []string {
}

func getRouteGatewayInterfaces() ([]int64, []string, error) {
defaultIP, err := gateway.DiscoverInterface()
defaultIP, err := gw.DiscoverInterface()
if err != nil {
logger.Panic("Could not discover default lan address and the requested one is not suitable, error: %v", err)
}
Expand Down

0 comments on commit 554d1e0

Please sign in to comment.