#7 admin server can't listen to more than one interface

closed-fixed
None
5
2003-10-09
2003-09-30
No

There seemed to be no way to tell pydir to listen
on all network interfaces for the admin interface.

This patch fixes it so that you can specify
either "*:7001" or ":7001" to have it listen on
all network interfaces.

--- pdconf.py.orig Tue Sep 30 15:38:30 2003
+++ pdconf.py Tue Sep 30 15:38:54 2003
@@ -22,6 +22,8 @@

def splitHostPort(s):
h,p = s.split(':')
+ if not h or h == '*':
+ h = ''
p = int(p)
return h,p

I would assume this works for the other "listen"
areas in the config.

--andy.

Discussion

  • Anthony Baxter

    Anthony Baxter - 2003-10-09
    • assigned_to: nobody --> anthonybaxter
    • status: open --> closed-fixed
     
  • Anthony Baxter

    Anthony Baxter - 2003-10-09

    Logged In: YES
    user_id=29957

    I went with a slight modification, and only allowed the
    '*:8080' (or whatever port number you want). Explicit is
    better than implicit <wink>. The same change also works for
    the <listen > directive, and '*' is certainly more obvious
    than '0.0.0.0'. This will be in 0.0.7, out shortly.

    Thanks!
    Anthony

     

Log in to post a comment.