ménage à la ferme
This commit is contained in:
parent
aa02944f88
commit
2287435874
4 changed files with 3 additions and 24 deletions
|
@ -7,11 +7,7 @@
|
|||
import socket
|
||||
|
||||
def pubipof(hostname):
|
||||
try:
|
||||
return socket.gethostbyname(hostname + ".crans.org")
|
||||
except:
|
||||
# Peut-être un serveur de la ferme ?
|
||||
return socket.gethostbyname(hostname + ".ferme.crans.org")
|
||||
return socket.gethostbyname(hostname + ".crans.org")
|
||||
|
||||
def admipof(hostname):
|
||||
return socket.gethostbyname(hostname + ".adm.crans.org")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue