IPV6 Barcode scanner
This commit is contained in:
parent
ac866cc0ba
commit
47bf025145
|
@ -1,6 +1,7 @@
|
||||||
from http.server import BaseHTTPRequestHandler, HTTPServer
|
from http.server import BaseHTTPRequestHandler, HTTPServer
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import socket
|
||||||
|
|
||||||
"""
|
"""
|
||||||
GetBlue Android parameters
|
GetBlue Android parameters
|
||||||
|
@ -28,8 +29,12 @@ class Server(BaseHTTPRequestHandler):
|
||||||
self._set_headers()
|
self._set_headers()
|
||||||
|
|
||||||
|
|
||||||
|
class HTTPServerV6(HTTPServer):
|
||||||
|
address_family = socket.AF_INET6
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
server_address = ('', 8080)
|
server_address = ('::', 8080)
|
||||||
httpd = HTTPServer(server_address, Server)
|
httpd = HTTPServerV6(server_address, Server)
|
||||||
print('Starting httpd...')
|
print('Starting httpd...')
|
||||||
httpd.serve_forever()
|
httpd.serve_forever()
|
||||||
|
|
Loading…
Reference in New Issue