mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-06 11:56:39 +08:00
fixed module imports
This commit is contained in:
parent
cee0ed1c39
commit
61e5ae9d02
2 changed files with 4 additions and 0 deletions
|
@ -4,7 +4,9 @@ import (
|
||||||
"net"
|
"net"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/gravitl/netmaker/logger"
|
||||||
"github.com/gravitl/netmaker/netclient/ncutils"
|
"github.com/gravitl/netmaker/netclient/ncutils"
|
||||||
|
"github.com/seancfoley/ipaddress-go/ipaddr"
|
||||||
)
|
)
|
||||||
|
|
||||||
// route -n add -net 10.0.0.0/8 192.168.0.254
|
// route -n add -net 10.0.0.0/8 192.168.0.254
|
||||||
|
|
|
@ -3,7 +3,9 @@ package local
|
||||||
import (
|
import (
|
||||||
"net"
|
"net"
|
||||||
|
|
||||||
|
"github.com/gravitl/netmaker/logger"
|
||||||
"github.com/gravitl/netmaker/netclient/ncutils"
|
"github.com/gravitl/netmaker/netclient/ncutils"
|
||||||
|
"github.com/seancfoley/ipaddress-go/ipaddr"
|
||||||
)
|
)
|
||||||
|
|
||||||
func setRoute(iface string, addr *net.IPNet, address string) error {
|
func setRoute(iface string, addr *net.IPNet, address string) error {
|
||||||
|
|
Loading…
Add table
Reference in a new issue