diff options
| author | Adnan Maolood <[email protected]> | 2021-02-20 13:31:55 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-02-20 13:31:55 -0500 |
| commit | a7f958b20dc4060462269222eae559e09c413549 (patch) | |
| tree | 39bc18fde8d9c4b322ac9f6fccb01786a99f9b58 /request.go | |
| parent | client: Allow Request.Host to omit a port (diff) | |
| download | go-gemini-a7f958b20dc4060462269222eae559e09c413549.tar.xz go-gemini-a7f958b20dc4060462269222eae559e09c413549.zip | |
server: Make Request.RemoteAddr a string
Diffstat (limited to 'request.go')
| -rw-r--r-- | request.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -5,7 +5,6 @@ import ( "context" "crypto/tls" "io" - "net" "net/url" ) @@ -39,7 +38,7 @@ type Request struct { // sets RemoteAddr to an "IP:port" address before invoking a // handler. // This field is ignored by the Gemini client. - RemoteAddr net.Addr + RemoteAddr string // TLS allows Gemini servers and other software to record // information about the TLS connection on which the request |