wichert/pyrad — Issue #6: Server bug, will only run on 127.0.0.1
Author: andrewhodel
Created: 2011-10-09 15:19:28+00:00
State: open

Whenever I try to run a server using the example, it will only work on 127.0.0.1.

Both 0.0.0.0 and any given interfaces IP don't work, the server starts and runs without error. You can even see it running on port 1812 in netstat, but radclient simple times out. If I set it back to 127.0.0.1, radclient works as expected.

srv=FakeServer(dict=dictionary.Dictionary("dictionary"))
srv.hosts["0.0.0.0"]=server.RemoteHost("0.0.0.0",
"sharedsecret",
"test")
srv.BindToAddress("")
srv.Run()