Fix bad merge after editing tcp.py

This commit is contained in:
Dan 2018-09-22 19:41:33 +02:00
parent 41acdd4d63
commit 8070bf4cd4

View File

@ -17,9 +17,9 @@
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>. # along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
import asyncio import asyncio
import ipaddress
import logging import logging
import socket import socket
import ipaddress
try: try:
import socks import socks
@ -69,7 +69,7 @@ class TCP:
log.info("Using proxy {}:{}".format(hostname, port)) log.info("Using proxy {}:{}".format(hostname, port))
else: else:
super().__init__( self.socket = socks.socksocket(
socket.AF_INET6 if ipv6 socket.AF_INET6 if ipv6
else socket.AF_INET else socket.AF_INET
) )