mirror of
https://github.com/fosrl/gerbil.git
synced 2026-03-01 08:16:55 +00:00
Fix url
This commit is contained in:
@@ -338,7 +338,7 @@ func (p *SNIProxy) getRoute(hostname string) (*RouteRecord, error) {
|
|||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
// Construct API URL
|
// Construct API URL
|
||||||
apiURL := fmt.Sprintf("%s/api/route/%s", p.remoteConfigURL, hostname)
|
apiURL := fmt.Sprintf("%s/gerbil/get-resolved-hostname/%s", p.remoteConfigURL, hostname)
|
||||||
|
|
||||||
// Create HTTP request
|
// Create HTTP request
|
||||||
req, err := http.NewRequestWithContext(ctx, "GET", apiURL, nil)
|
req, err := http.NewRequestWithContext(ctx, "GET", apiURL, nil)
|
||||||
|
|||||||
Reference in New Issue
Block a user