Skip to content

Commit

Permalink
api: fix error checking bug in IP code (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
worm-emoji authored Aug 25, 2022
1 parent d3e9f91 commit 122579b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func ipFromRequest(r *http.Request) string {
}

host, _, err := net.SplitHostPort(r.RemoteAddr)
if err != nil {
if err == nil {
return host
}

Expand Down

1 comment on commit 122579b

@vercel
Copy link

@vercel vercel bot commented on 122579b Aug 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lanyard – ./

allowlist.context.wtf
lanyard.context.wtf
lanyard.build
www.lanyard.build
lanyard-git-main.context.wtf

Please sign in to comment.