1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2024-12-24 17:42:23 +00:00

IPV6 Barcode scanner

This commit is contained in:
Yohann D'ANELLO 2020-02-09 18:18:02 +01:00
parent ac866cc0ba
commit 47bf025145

View File

@ -1,6 +1,7 @@
from http.server import BaseHTTPRequestHandler, HTTPServer
import os
import socket
"""
GetBlue Android parameters
@ -28,8 +29,12 @@ class Server(BaseHTTPRequestHandler):
self._set_headers()
class HTTPServerV6(HTTPServer):
address_family = socket.AF_INET6
if __name__ == "__main__":
server_address = ('', 8080)
httpd = HTTPServer(server_address, Server)
server_address = ('::', 8080)
httpd = HTTPServerV6(server_address, Server)
print('Starting httpd...')
httpd.serve_forever()