Skip to content
Snippets Groups Projects
Commit b01a3e14 authored by Alex Gartner's avatar Alex Gartner
Browse files

ci: set defaultServer

parent 3a097573
No related branches found
No related tags found
No related merge requests found
Pipeline #101284994 passed
......@@ -8,9 +8,9 @@ build:
CGO_ENABLED: 0
script:
- cd client
- go build -o tunnel-client-linux-amd64
- GOOS=darwin GOARCH=amd64 go build -o tunnel-client-darwin-amd64
- GOOS=windows GOARCH=amd64 go build -o tunnel-client-amd64.exe
- go build -ldflags "-X main.defaultServer=$DEFAULT_SERVER" -o tunnel-client-linux-amd64
- GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.defaultServer=$DEFAULT_SERVER" -o tunnel-client-darwin-amd64
- GOOS=windows GOARCH=amd64 go build -ldflags "-X main.defaultServer=$DEFAULT_SERVER" -o tunnel-client-amd64.exe
artifacts:
paths:
- client/tunnel-client-linux-amd64
......
......@@ -74,16 +74,6 @@ func stage2(conn net.Conn) {
return
}
/*
conf := &tls.Config{
InsecureSkipVerify: true,
ServerName: "stats-server.okd.mitre.org",
}
tConn, err := tls.Dial("tcp", "stats-server.okd.mitre.org:443", conf)
if err != nil {
panic(err)
}
*/
tConn, err := net.Dial("tcp", target)
if err != nil {
panic(err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment