aboutsummaryrefslogtreecommitdiff
path: root/request.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-02-20 13:31:55 -0500
committerAdnan Maolood <[email protected]>2021-02-20 13:31:55 -0500
commita7f958b20dc4060462269222eae559e09c413549 (patch)
tree39bc18fde8d9c4b322ac9f6fccb01786a99f9b58 /request.go
parentclient: Allow Request.Host to omit a port (diff)
downloadgo-gemini-a7f958b20dc4060462269222eae559e09c413549.tar.xz
go-gemini-a7f958b20dc4060462269222eae559e09c413549.zip
server: Make Request.RemoteAddr a string
Diffstat (limited to 'request.go')
-rw-r--r--request.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/request.go b/request.go
index 5356112..2d10f50 100644
--- a/request.go
+++ b/request.go
@@ -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