phoneweb

package
v0.149.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package phoneweb authenticates a phone browser before forwarding the existing local roost API. It adds no wing-control protocol and never trusts proxy headers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateListenAddr

func ValidateListenAddr(addr string) error

ValidateListenAddr rejects DNS names and wildcard/LAN binds.

Types

type Gateway

type Gateway struct {
	// contains filtered or unexported fields
}

func New

func New(origin, upstream, keyFile string) (*Gateway, error)

func (*Gateway) ServeHTTP

func (g *Gateway) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL