mirror of https://github.com/goproxyio/goproxy
set GOPRIVATE env
parent
9946403fec
commit
917f4e7037
4
main.go
4
main.go
|
@ -59,6 +59,10 @@ func init() {
|
||||||
if os.Getenv("GIT_SSH") == "" && os.Getenv("GIT_SSH_COMMAND") == "" {
|
if os.Getenv("GIT_SSH") == "" && os.Getenv("GIT_SSH_COMMAND") == "" {
|
||||||
os.Setenv("GIT_SSH_COMMAND", "ssh -o ControlMaster=no")
|
os.Setenv("GIT_SSH_COMMAND", "ssh -o ControlMaster=no")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if excludeHost != "" {
|
||||||
|
os.Setenv("GOPRIVATE", excludeHost)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
Loading…
Reference in New Issue