As the transcript below shows, the zeroconf extensions uses the port number supplied on the command line rather than the port actually bound by "hg serve". $ hg serve -p 0 listening at http://thunder:43195/ (bound to *:43195) ^Z [1]+ Stopped hg serve -p 0 $ bg [1]+ hg serve -p 0 & $ hg paths default = http://hg.moinmo.in/moin/2.0 zc-thunder-moin-2 = http://192.168.1.101:0/
Patch sent.
Fixed by http://selenic.com/repo/hg/rev/d57879e72e18 Benoit Boissinot <benoit.boissinot@ens-lyon.org> zeroconf: use port from server instead of picking port from config (issue3746) In order to get the port, wrap create server instead of hgweb_mod/hgwebdir_mod. (please test the fix)
Fixed by http://selenic.com/repo/hg/rev/120e1160d17e Benoit Boissinot <benoit.boissinot@ens-lyon.org> zeroconf: use port from server instead of picking port from config (issue3746) In order to get the port, wrap create server instead of hgweb_mod/hgwebdir_mod. (please test the fix)