long story short I am trying to create a DNS resolver and TLS over TCP socket but I am getting an error
Here is the script:
class connection:
c = connections
connections = []
with socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0) as sock:
sock.bind(('0.0.0.0', 8443))
sock.listen(5)
with context.wrap_socket(sock, server_side=True) as ssock:
conn, addr = ssock.accept()
with soccket.create_connection((hostname, 443)) as sock:
with context.wrap_socket(sock, sever_hostname=hostname) as ssock:
print(ssock.version())
c = httplib.HTTPSconnection("ccc.de")
c.request("GET", "/")
response = c.getresponse
print('response.status', 'responses.reason')
data = response.read()
print(data)
Under sock.bind((‘0.0.0.0’, 8443)) I am getting an error saying unindent does not match any outer indication level and I have no clue what I am doing wrong I tried a few different things but I just ended breaking the whole thing I am making