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

Unable to serveRestJSClient with empty URL #2222

Closed
deviator opened this Issue Oct 20, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@deviator
Copy link
Contributor

commented Oct 20, 2018

If I want to use js client generation I must to specify url for requests. But if I want use my program in different machines I need to get ip at each machine at start of program. If I want use many internet interfaces with different ip it's makes problems. But js client what send requests to self server don't need full url (for example http://192.168.99.13/api/v1/some). It's can send requests to relative url (/api/v1/some).

deviator added a commit to deviator/vibe.d that referenced this issue Oct 20, 2018

@Beyarz

This comment has been minimized.

Copy link

commented Nov 2, 2018

If you don't want to specify the ip addresses manually you can use this package.

@deviator

This comment has been minimized.

Copy link
Contributor Author

commented Nov 2, 2018

If you don't want to specify the ip addresses manually you can use this package.

I know, thanks, but problem is deeper: device with my program can be in local network with complicated structure (this is my real case) and determine ip address in other networks (where my device has remaped ip) can be problematic and can need more what one steps. And this problem will not appear if serveRestJSClient will can use empty url.

@s-ludwig s-ludwig closed this in 8b0efd5 Nov 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.