mirror of
https://github.com/go-gost/gost.git
synced 2026-06-04 21:01:10 +08:00
10 lines
179 B
Python
10 lines
179 B
Python
import socket
|
|
|
|
|
|
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
|
sock.bind(("0.0.0.0", 5679))
|
|
|
|
while True:
|
|
data, addr = sock.recvfrom(2048)
|
|
sock.sendto(data, addr)
|