Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

soaphandler address problem #14

Open
leonevo opened this issue Jul 16, 2012 · 0 comments
Open

soaphandler address problem #14

leonevo opened this issue Jul 16, 2012 · 0 comments
Assignees

Comments

@leonevo
Copy link

leonevo commented Jul 16, 2012

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.

@ghost ghost assigned rancavil Jul 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants