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

Fix/remove env test #838

Merged
merged 1 commit into from
Jul 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions internal/vpn/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ func AppEnvArgs(config DirectRoutesEnvConfig) map[string]string {
// - domain without port;
// - IP with port;
// - IP without port.
// In case domain is provided instead of an IP address, a DNS lookup is also
// performed to resolve the actual IP address
func IPFromEnv(key string) (net.IP, bool, error) {
return ParseIP(os.Getenv(key))
}
Expand All @@ -125,6 +127,8 @@ func IPFromEnv(key string) (net.IP, bool, error) {
// - domain without port;
// - IP with port;
// - IP without port.
// In case domain is provided instead of an IP address, a DNS lookup is also
// performed to resolve the actual IP address
func ParseIP(addr string) (net.IP, bool, error) {
if addr == "" {
return nil, false, nil
Expand Down
59 changes: 0 additions & 59 deletions internal/vpn/env_test.go

This file was deleted.