Skip to content
Snippets Groups Projects
Commit f8d7b393 authored by Symphorien Gibol's avatar Symphorien Gibol
Browse files

peer adress as a param

parent 014ec5f3
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
from pytun import TunTapDevice
import selectors
import socket
import sys
tun = TunTapDevice()
......@@ -15,7 +15,7 @@ tun.mtu = 400
tun.up()
PEER = "10.4.25.25"
PEER = sys.argv[1]
PORT = 1456
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.bind(('', PORT))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment