1
0
mirror of https://git.zx2c4.com/wireguard-go synced 2024-11-15 01:05:15 +01:00

Align with go library layout

This commit is contained in:
Mathias Hall-Andersen 2018-02-04 16:08:26 +01:00
parent 5871ec04de
commit a0f54cbe5a
50 changed files with 4 additions and 4 deletions

View File

View File

@ -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)"

View File

View File

@ -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