[svn r37318] Rolling back previous change, instead applying what seems to have been the intention from the start: if '' is supplied as hostname from the server, use the IP address as reported by socket.getsockname()
[svn r37318] Rolling back previous change, instead applying what seems to have been the intention from the start: if '' is supplied as hostname from the server, use the IP address as reported by socket.getsockname()

--HG--
branch : trunk

wfxiang08/pytest,ionelmc/pytest,tomviner/pytest,rouge8/pytest,hunse/pytest,Bjwebb/pytest,mdboom/pytest,bubenkoff/pytest,JonathonSonesen/pytest,ddboline/pytest,etataurov/pytest,bukzor/pytest,eli-b/pytest,markshao/pytest,Bachmann1234/pytest,codewarrior0/pytest,JonathonSonesen/pytest,malinoff/pytest,mbirtwell/pytest,pytest-dev/py,omarkohl/pytest,oleg-alexandrov/pytest,mdboom/pytest,userzimmermann/pytest,inirudebwoy/pytest,oleg-alexandrov/pytest,txomon/pytest,jb098/pytest,lukas-bednar/pytest,codewarrior0/pytest,untitaker/pytest,ghostsquad/pytest,userzimmermann/pytest,hpk42/pytest,skylarjhdownes/pytest,rmfitzpatrick/pytest,hunse/pytest,chillbear/pytest,inirudebwoy/pytest,ojake/pytest,chiller/pytest,vodik/pytest,vmalloc/dessert,wfxiang08/pytest,tgoodlet/pytest,bubenkoff/pytest,tareqalayan/pytest,The-Compiler/pytest,takluyver/pytest,The-Compiler/pytest,Carreau/pytest,tomviner/pytest,alfredodeza/pytest,hackebrot/pytest,chillbear/pytest,flub/pytest,pelme/pytest,ericdill/pytest,pelme/pytest,chiller/pytest,abusalimov/pytest,Bachmann1234/pytest,ojake/pytest,jaraco/pytest,jb098/pytest,MengJueM/pytest,icemac/pytest,Haibo-Wang-ORG/pytest,mhils/pytest,abusalimov/pytest,omarkohl/pytest,pytest-dev/pytest,rouge8/pytest,RonnyPfannschmidt/pytest,lukas-bednar/pytest,untitaker/pytest,Magicjarvis/py,Bjwebb/pytest,ericdill/pytest,nicoddemus/repo-test,MengJueM/pytest,nicoddemus/repo-test,nicoddemus/pytest,pfctdayelise/pytest,mbirtwell/pytest,hpk42/pytest,Haibo-Wang-ORG/pytest,takluyver/pytest,ropez/pytest,gabrielcnr/pytest,gabrielcnr/pytest,davidszotten/pytest,mhils/pytest,ropez/pytest,doordash/pytest,icemac/pytest,Akasurde/pytest,ghostsquad/pytest,nicoddemus/pytest,ionelmc/pytest,MichaelAquilina/pytest,bukzor/pytest,vodik/pytest,doordash/pytest,Carreau/pytest