Skip to content

Instantly share code, notes, and snippets.

Avatar

Luis Ángel Méndez Gort lamg

View GitHub Profile
@lamg
lamg / golang_request_ip_from_context.go
Last active Oct 25, 2017
How to get the IP address in the dialer's context, using https://github.com/elazarl/goproxy
View golang_request_ip_from_context.go
package main
import (
"context"
"flag"
"fmt"
gp "github.com/elazarl/goproxy"
"log"
"net"
"net/http"
View keybase.md

Keybase proof

I hereby claim:

  • I am lamg on github.
  • I am lamg (https://keybase.io/lamg) on keybase.
  • I have a public key whose fingerprint is A1C2 E5BE EA42 B2B9 1A8A 0D80 3941 99B7 9F03 6583

To claim this, I am signing this object:

You can’t perform that action at this time.