Add client support for HTTPS forwarding and custom Host headers

This commit is contained in:
Jose Luis Montañes Ojados
2026-01-27 03:05:09 +01:00
parent b5f6f42311
commit 310d7e086c
3 changed files with 30 additions and 76 deletions

View File

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