server

command
v0.43.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command server is the hub half of the echo example, with zero configuration: holt.NewServer() serves the tunnel on 127.0.0.1:7200 and a proxy on :7202.

No identity is configured, so the development identity applies: peers name themselves with the x-holt-peer header, nothing verifies the claim, and the tunnel refuses to bind anywhere another machine could reach. Loopback demos only — see the `authenticated` example for a real identity.

go run ./examples/echo/server

Then run the peer (see ../client) and reach it through the proxy:

curl -H 'x-tunnel-peer: peer' http://127.0.0.1:7202/whoami

Jump to

Keyboard shortcuts

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