##// END OF EJS Templates
py3: fix crash when server address is 0.0.0.0 (issue6362)...
Manuel Jacob -
r45578:b1a17022 stable
parent child Browse files
Show More
@@ -382,7 +382,7 b' class MercurialHTTPServer(_mixin, httpse'
382 382 self.errorlog = elog
383 383
384 384 self.addr, self.port = self.socket.getsockname()[0:2]
385 self.fqaddr = socket.getfqdn(addr[0])
385 self.fqaddr = self.server_name
386 386
387 387 self.serverheader = ui.config(b'web', b'server-header')
388 388
@@ -99,4 +99,11 b' With out of bounds accesses'
99 99 $LOCALIP - - [$LOGDATE$] "GET /some/dir7?cmd=capabilities HTTP/1.1" 404 - (glob)
100 100 $LOCALIP - - [$LOGDATE$] "GET /some?cmd=capabilities HTTP/1.1" 404 - (glob)
101 101
102 $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS
103
104 issue6362: Previously, this crashed on Python 3
105
106 $ hg serve -a 0.0.0.0 -d
107 listening at http://*:$HGPORT1/ (bound to *:$HGPORT1) (glob)
108
102 109 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now