IPV6 Barcode scanner
This commit is contained in:
parent
ac866cc0ba
commit
47bf025145
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue