Secure Client for exposing TLS (aka SSL) secured services as plain-text connections locally. Also ideal for multiplexing a single port with multiple protocols using SNI.

build-all.sh 940B

123456789101112131415161718192021222324252627282930313233
  1. #GOOS=windows GOARCH=amd64 go install
  2. go tool dist list
  3. gocmd=cmd/sclient/main.go
  4. golib=""
  5. echo ""
  6. echo ""
  7. echo "Windows amd64"
  8. GOOS=windows GOARCH=amd64 go build -o dist/windows/amd64/sclient.exe $gocmd $golib
  9. echo "Windows 386"
  10. GOOS=windows GOARCH=386 go build -o dist/windows/386/sclient.exe $gocmd $golib
  11. echo ""
  12. echo "Darwin (macOS) amd64"
  13. GOOS=darwin GOARCH=amd64 go build -o dist/darwin/amd64/sclient $gocmd $golib
  14. echo ""
  15. echo "Linux amd64"
  16. GOOS=linux GOARCH=amd64 go build -o dist/linux/amd64/sclient $gocmd $golib
  17. echo "Linux 386"
  18. echo ""
  19. GOOS=linux GOARCH=386 go build -o dist/linux/386/sclient $gocmd $golib
  20. echo "RPi 3 B+ ARMv7"
  21. GOOS=linux GOARCH=arm GOARM=7 go build -o dist/linux/armv7/sclient $gocmd $golib
  22. echo "RPi Zero ARMv5"
  23. GOOS=linux GOARCH=arm GOARM=5 go build -o dist/linux/armv5/sclient $gocmd $golib
  24. echo ""
  25. echo ""
  26. rsync -av ./dist/ root@telebit.cloud:/opt/telebit-relay/lib/extensions/admin/sclient/dist/