8000 chore: switch to new wgtunnel via tunnelsdk by deansheather · Pull Request #6489 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

chore: switch to new wgtunnel via tunnelsdk #6489

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

Merged
merged 13 commits into from
Mar 22, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! feat: add --tunnel-host to control wgtunnel server
  • Loading branch information
deansheather committed Mar 17, 2023
commit 28d7b9d7127739de44d1c5ceaeb80ac91c45a96b
8000 16 changes: 0 additions & 16 deletions cli/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1230,22 +1230,6 @@ flags, and YAML configuration. The precedence is as follows:
return root
}

// parseURL parses a string into a URL.
func parseURL(u string) (*url.URL, error) {
hasScheme := strings.HasPrefix(u, "http:") || strings.HasPrefix(u, "https:")

if !hasScheme {
return nil, xerrors.Errorf("URL %q must have a scheme of either http or https", u)
}

parsed, err := url.Parse(u)
if err != nil {
return nil, err
}

return parsed, nil
}

// isLocalURL returns true if the hostname of the provided URL appears to
// resolve to a loopback address.
func isLocalURL(ctx context.Context, u *url.URL) (bool, error) {
Expand Down
0