change ip assignment to support ipv6 overlay

This commit is contained in:
Leo Antunes
2019-03-28 20:27:08 +01:00
parent c1a3cc33f4
commit b8e729298c
4 changed files with 122 additions and 12 deletions

19
tests/wg Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
# docker run --rm -it --hostname test3 --name test3 --network wesher_test --volume `pwd`:/app golang:1.12-alpine
# cd /app
# apk add git
# export PATH=/app:$PATH
# go run . --loglevel debug --clusterkey 'ILICZ3yBMCGAWNIq5Pn0bewBVimW3Q2yRVJ/Be+b1Uc='
case $1 in
genkey)
echo "ILICZ3yBMCGAWNIq5Pn0bewBVimW3Q2yRVJ/Be+b1Uc="
;;
pubkey)
read x
echo "VceweY6x/QdGXEQ6frXrSd8CwUAInUmqIc6G/qi8FHo="
;;
*)
;;
esac