Align with go library layout
This commit is contained in:
parent
5871ec04de
commit
a0f54cbe5a
50 changed files with 4 additions and 4 deletions
Makefilebuild.cmdconn.goconn_default.goconn_linux.goconstants.gocookie.gocookie_test.godaemon_darwin.godaemon_linux.godaemon_windows.godevice.gohelper_test.goindex.goip.gokdf_test.gokeypair.gologger.gomain.gomisc.gonoise_helpers.gonoise_protocol.gonoise_test.gonoise_types.gopeer.goratelimiter.goratelimiter_test.goreceive.goreplay.goreplay_test.gorouting.gosend.gosignal.gotai64.go
tests
timer.gotimers.gotrie.gotrie_rand_test.gotrie_test.gotun.gotun_darwin.gotun_linux.gotun_windows.gouapi.gouapi_darwin.gouapi_linux.gouapi_windows.goxchacha20.goxchacha20_test.go
|
@ -80,11 +80,11 @@ pp ip netns add $netns2
|
|||
ip0 link set up dev lo
|
||||
|
||||
# ip0 link add dev wg1 type wireguard
|
||||
n0 $program wg1
|
||||
n0 $program -f wg1 &
|
||||
ip0 link set wg1 netns $netns1
|
||||
|
||||
# ip0 link add dev wg1 type wireguard
|
||||
n0 $program wg2
|
||||
n0 $program -f wg2 &
|
||||
ip0 link set wg2 netns $netns2
|
||||
|
||||
key1="$(pp wg genkey)"
|
|
@ -313,7 +313,7 @@ func CreateTUNFromFile(name string, fd *os.File) (TUNDevice, error) {
|
|||
}
|
||||
|
||||
go device.RoutineNetlinkListener()
|
||||
// go device.RoutineHackListener() // cross namespace
|
||||
go device.RoutineHackListener() // cross namespace
|
||||
|
||||
// set default MTU
|
||||
|
||||
|
@ -369,7 +369,7 @@ func CreateTUN(name string) (TUNDevice, error) {
|
|||
}
|
||||
|
||||
go device.RoutineNetlinkListener()
|
||||
// go device.RoutineHackListener() // cross namespace
|
||||
go device.RoutineHackListener() // cross namespace
|
||||
|
||||
// set default MTU
|
||||
|
Loading…
Reference in a new issue