mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Update Internet.dns to handle IPv6 IPs and responses
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
parent
543e78828b
commit
d56381436c
@ -1,6 +1,6 @@
|
|||||||
###
|
###
|
||||||
# Copyright (c) 2003-2005, Jeremiah Fincher
|
# Copyright (c) 2003-2005, Jeremiah Fincher
|
||||||
# Copyright (c) 2010, James Vega
|
# Copyright (c) 2010-2011, James Vega
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -53,7 +53,7 @@ class Internet(callbacks.Plugin):
|
|||||||
irc.reply(hostname)
|
irc.reply(hostname)
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
ip = socket.gethostbyname(host)
|
ip = socket.getaddrinfo(host, None)[0][4][0]
|
||||||
if ip == '64.94.110.11': # Verisign sucks!
|
if ip == '64.94.110.11': # Verisign sucks!
|
||||||
irc.reply('Host not found.')
|
irc.reply('Host not found.')
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user