shark expose: put a local port on the internet through Hammerhead
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
61143d107c
15 files changed
+1538
No files matched your search
@@ -0,0 +1,21 @@
|
||||
// shark exposes a local port through your own Hammerhead and Blacktip, like ngrok.
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
"git.veillax.com/Veillax/shark-expose/internal/cli"
|
||||
)
|
||||
|
||||
// version is set at build time (-ldflags "-X main.version=...").
|
||||
var version = "dev"
|
||||
|
||||
func main() {
|
||||
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
|
||||
defer stop()
|
||||
cli.Version = version
|
||||
os.Exit(cli.Run(ctx, os.Args[1:], os.Stdout, os.Stderr))
|
||||
}
|
||||
Reference in new issue
Block a user