Skip to content

Commit

Permalink
Change env name for detecting the public ip
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Weinstock <[email protected]>
  • Loading branch information
jacobweinstock committed Nov 8, 2024
1 parent 5562f82 commit 9bfbb22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/smee/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func ipByInterface(name string) string {
}

func detectPublicIPv4() string {
if netint := os.Getenv("SMEE_IP_DETECT_INTERFACE"); netint != "" {
if netint := os.Getenv("SMEE_PUBLIC_IP_INTERFACE"); netint != "" {
if ip := ipByInterface(netint); ip != "" {
return ip
}

Check warning on line 209 in cmd/smee/flag.go

View check run for this annotation

Codecov / codecov/patch

cmd/smee/flag.go#L207-L209

Added lines #L207 - L209 were not covered by tests
Expand Down

0 comments on commit 9bfbb22

Please sign in to comment.