[GH-ISSUE #91] error on build #46

Closed
opened 2026-02-27 23:15:12 +03:00 by kerem · 2 comments
Owner

Originally created by @saturn99 on GitHub (May 31, 2018).
Original GitHub issue: https://github.com/snail007/goproxy/issues/91

I can not build from source, give this error:

snail007/goproxy$ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o proxy 
# github.com/snail007/goproxy/utils
utils/functions.go:153: unknown tls.Config field 'VerifyPeerCertificate' in struct literal
utils/structs.go:159: u.Hostname undefined (type *url.URL has no field or method Hostname)
Originally created by @saturn99 on GitHub (May 31, 2018). Original GitHub issue: https://github.com/snail007/goproxy/issues/91 I can not build from source, give this error: ``` snail007/goproxy$ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o proxy # github.com/snail007/goproxy/utils utils/functions.go:153: unknown tls.Config field 'VerifyPeerCertificate' in struct literal utils/structs.go:159: u.Hostname undefined (type *url.URL has no field or method Hostname) ```
kerem closed this issue 2026-02-27 23:15:12 +03:00
Author
Owner

@snail007 commented on GitHub (May 31, 2018):

it's seems like the go version mistake, suggest go version is 1.8.5

<!-- gh-comment-id:393554881 --> @snail007 commented on GitHub (May 31, 2018): it's seems like the go version mistake, suggest go version is 1.8.5
Author
Owner

@saturn99 commented on GitHub (May 31, 2018):

I update to version go1.10.2 , solved, thankyou

<!-- gh-comment-id:393556025 --> @saturn99 commented on GitHub (May 31, 2018): I update to version `go1.10.2` , solved, thankyou
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#46
No description provided.