Commit 5f3160e0 authored by Sam Rushing's avatar Sam Rushing

use coro.AF.INET rather than socket.AF_INET

parent 10a33a7a
......@@ -2,7 +2,6 @@
import coro
from coro.ssl import openssl
import socket
ssl_op_map = {
"sslv2":openssl.SSL_OP.NO_SSLv3|openssl.SSL_OP.NO_TLSv1,
......@@ -33,7 +32,7 @@ def new_ctx (cert=None, chain=(), key=None, proto=None, ciphers=None, dhparam=No
class sock (coro.sock):
def __init__ (self, ctx, fd=-1, verify=False, domain=socket.AF_INET):
def __init__ (self, ctx, fd=-1, verify=False, domain=coro.AF.INET):
coro.sock.__init__ (self, fd=fd, domain=domain)
self.ctx = ctx
# Note: this uses SSLv23_method(), which allows it to accept V2 client hello
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment