Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Set fastrouter mapping (not tested)

View mapping.py
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
import socket
import struct
 
ip = '127.0.0.1'
port = 5005
 
payload = {
'key': '',
'address': '',
}
 
msg = ''
 
for k, v in payload.iteritems():
msg += struct.pack('<h', len(k)) + k
msg += struct.pack('<h', len(v)) + v
 
msg = struct.pack('<BhB', 224, len(msg), 0) + msg
 
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.sendto(msg, (ip, port))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.