mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-20 05:31:40 +00:00
Revert "cmd/tailscale: access QNAP via localhost"
When running `tailscale web` as a standalone process, it was necessary to send auth requests to QTS using localhost to avoid hitting the proxy recursively. However running `tailscale web` as a process means it is consuming RAM all the time even when it isn't actively doing anything. After switching back to the `tailscale web` CGI mode, we don't need to specifically use localhost for QNAP auth. This reverts commit e0cadc54968519eae7e37e0e65ab9a7052bd54e8. Signed-off-by: Denton Gentry <dgentry@tailscale.com>
This commit is contained in:
parent
82ad585b5b
commit
a200a23f97
@ -223,8 +223,8 @@ func qnapAuthnQtoken(r *http.Request, user, token string) (string, *qnapAuthResp
|
|||||||
"user": []string{user},
|
"user": []string{user},
|
||||||
}
|
}
|
||||||
u := url.URL{
|
u := url.URL{
|
||||||
Scheme: "http",
|
Scheme: r.URL.Scheme,
|
||||||
Host: "127.0.0.1:8080",
|
Host: r.URL.Host,
|
||||||
Path: "/cgi-bin/authLogin.cgi",
|
Path: "/cgi-bin/authLogin.cgi",
|
||||||
RawQuery: query.Encode(),
|
RawQuery: query.Encode(),
|
||||||
}
|
}
|
||||||
@ -237,8 +237,8 @@ func qnapAuthnSid(r *http.Request, user, sid string) (string, *qnapAuthResponse,
|
|||||||
"sid": []string{sid},
|
"sid": []string{sid},
|
||||||
}
|
}
|
||||||
u := url.URL{
|
u := url.URL{
|
||||||
Scheme: "http",
|
Scheme: r.URL.Scheme,
|
||||||
Host: "127.0.0.1:8080",
|
Host: r.URL.Host,
|
||||||
Path: "/cgi-bin/authLogin.cgi",
|
Path: "/cgi-bin/authLogin.cgi",
|
||||||
RawQuery: query.Encode(),
|
RawQuery: query.Encode(),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user