Re: SoupServer bind to link-local



On Mi, 2013-07-31 at 15:05 -0400, Dan Winship wrote:
On 07/31/2013 01:50 PM, Kai Lüke wrote:
is it somehow possible to use SoupServer and bind it to a specific
IP/interface? Setting the interface property to SoupAddress created with
new_any works, but I don't want to use 0.0.0.0 but e.g. 127.0.0.1.
Actually I think it might be possible with new_from_sockaddr, but I
don't get the python-bindings (gir) for this function and couldn't
figure out how to combine it with "import socks" C sockets.

Yeah, soup_address_new_from_sockaddr() isn't introspectable.

But soup_address_new("127.0.0.1", port) will work. (Um... except you
might need to call resolve_sync() on the address after creating it.)

Skip the might, unless that was fixed in the last half year ;)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]