-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
address = getattr(self, 'targetns_address',tornado.httpserver.socket.gethostbyname(tornado.httpserver.socket.gethostname()))
the method above will get the wrong ip address. For example I use the eth0 ip address in the url, and the wsdl will use the 127.0.0.1 that the soap client can not connect to .
I simply change to this:
address=self.request.headers['Host'].split(':')[0]
and it works.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels