Skip to content

soaphandler address problem #14

@leonevo

Description

@leonevo

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions