diff --git a/gen.sh b/gen.sh index b148b2e..a47c301 100644 --- a/gen.sh +++ b/gen.sh @@ -54,13 +54,12 @@ echo "PersistentKeepalive = 25" >> vpn.conf echo "Would You Like To Have This Config On QR-Code Or File:" -qr=1 -file=2 echo -e "QR-code Press 1:\nFile Press 2:\n" -if [ $qr -eq 1 ];then +read user_wish +if [ $user_wish -eq 1 ];then qrencode -t ansiutf8 < . qr-scan-me.conf echo "Please scan this code with wireguard-app" -elif [ $file -eq 2 ];then +elif [ $user_wish -eq 2 ];then echo "Your file is ready" else echo "Oops wrong input" diff --git a/qr b/qr new file mode 100644 index 0000000..af73bb5 Binary files /dev/null and b/qr differ diff --git a/vpn.conf b/vpn.conf new file mode 100644 index 0000000..a872f42 --- /dev/null +++ b/vpn.conf @@ -0,0 +1,9 @@ +[Interface] +Address = 1 +PrivateKey = ENiMbxsidpHugMPCAFvytn+lOSyJwcK1A+TMyZKRi2Q= +DNS = 1 +[Peer] +PublicKey = M6T+PwMTUhr6BJFGu7OY0she6Z2laPkZKCQWE0HRahE= +Endpoint = 176.58.109.31:7000 +AllowedIPs= 1 +PersistentKeepalive = 25