Add --slug flag to reuse a specific subdomain across sessions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jose Luis Montañes Ojados
2026-02-09 01:27:17 +01:00
parent c83fa3530d
commit 803b4049a6
4 changed files with 68 additions and 31 deletions

View File

@@ -68,8 +68,8 @@ type LogMsg string
type MetricMsg int64
type ClearCopiedMsg struct{}
func InitialModel(localPort, serverAddr, authToken, hostHeader string, localHTTPS bool) Model {
c := tunnel.NewClient(serverAddr, localPort, authToken, hostHeader, localHTTPS)
func InitialModel(localPort, serverAddr, authToken, hostHeader string, localHTTPS bool, slug string) Model {
c := tunnel.NewClient(serverAddr, localPort, authToken, hostHeader, localHTTPS, slug)
return Model{
Client: c,
LogLines: []string{},