https://github.com/negrel/localtunnel
expose yourself (in Go)
https://github.com/negrel/localtunnel
Last synced: about 2 months ago
JSON representation
expose yourself (in Go)
- Host: GitHub
- URL: https://github.com/negrel/localtunnel
- Owner: negrel
- License: mit
- Created: 2025-02-05T17:04:24.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2025-02-05T17:24:59.000Z (4 months ago)
- Last Synced: 2025-02-05T18:44:57.592Z (4 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `localtunnel` - expose yourself (in Go)
This repository contains a drop-in replacement of
[`localtunnel`](https://github.com/localtunnel/localtunnel) client CLI in Go. I
choose to rewrite it in Go to ensure static binary compilation, addressing
compatibility issues present in the original version (on Android notably).## Getting started
First, build the go program as follow:
```
$ CGO_ENABLED=0 go build -o lt# Compile for android
GOOS=android GOARCH=arm64 CGO_ENABLED=0 go build -o lt
```Then run it:
```
$ lt --help
Usage lt --port [num]Options:
--allow-invalid-cert Disable certificate checks for your local HTTPS server (ignore cert/key/ca options)
--debug Show debug logs
--help Show this help and exit
-h, --host string Upstream server providing forwarding (default "https://localtunnel.me")
--local-ca string Path to certificate authority file for self-signed certificates
--local-cert string Path to certificate PEM file for local HTTPS server
-l, --local-host string Tunnel traffic to this host instead of localhost, override Host header to this host (default "localhost")
--local-https Tunnel traffic to a local HTTPS server
--local-key string Path to certificate key file for local HTTPS server
-m, --max-connections uint16 Max number of simultaneous connections (default 10)
-o, --open Opens the tunnel URL in your browser
-p, --port uint16 Internal HTTP server port
--print-requests No op, this is a compatibility flag
-s, --subdomain string Request this subdomain
--version Show version number$ lt --subdomain myapp --port 3000
your url is: https://myapp.loca.lt
...
```## Contributing
If you want to contribute to `localtunnel` to add a feature or improve the code contact
me at [[email protected]](mailto:[email protected]), open an
[issue](https://github.com/negrel/localtunnel/issues) or make a
[pull request](https://github.com/negrel/localtunnel/pulls).## :stars: Show your support
Please give a :star: if this project helped you!
[](https://www.buymeacoffee.com/negrel)
## :scroll: License
MIT © [Alexandre Negrel](https://www.negrel.dev/)