mirror of
https://github.com/mmatczuk/go-http-tunnel.git
synced 2026-05-15 14:16:17 -06:00
[GH-ISSUE #22] URL based client communication #12
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/go-http-tunnel#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ptheunis on GitHub (May 11, 2017).
Original GitHub issue: https://github.com/mmatczuk/go-http-tunnel/issues/22
Is it currently possible to subscribe a particular client to url path?
Let's say i have 2 clients and 1 server.
client 1 should be responsible for responses to server:80/client1/query
client 2 should be responsible for responses to server:80/client2/query
Is this doable?
i tried changing the client tunnel endpoint to a path based on their "id" but that didn't work.
@mmatczuk commented on GitHub (May 11, 2017):
Hi @pault84,
I'd recommend using host so that you would have
client1.server/queryandclient2.server/querythis is simpler and more error prone. In general case striping URL path should be avoided see https://github.com/fabiolb/fabio/issues/2.@ptheunis commented on GitHub (May 11, 2017):
that would only work if host is an actual DNS name right? that would not work for IP's
@mmatczuk commented on GitHub (May 11, 2017):
Yep, you can use
/etc/hostsfor development and if you have like two or three clients you can also get some free DNS no problem.