The 0.0.1 file stored one protocol per endpoint, taken from the scheme
of the back-end target. It could not record the listener protocol, more
than one mount point, or any option about the back-end. get-config
wrote an HTTPS listener with a plain-HTTP back-end as an "http://"
endpoint, and set-config applied that file as a plain-HTTP listener.
In the 0.1.0 schema each listener names its own protocol and each
back-end is an object. One pair of functions in ipn/conffile converts
between the file and an ipn.ServiceConfig.
get-config now writes 0.1.0, and fails if a Service holds something the
file cannot describe. set-config reads 0.1.0, 0.0.1, and legacy raw
files through one apply path. A 0.0.1 file keeps its old meaning, and
set-config warns when one has an "http://" endpoint.
A tsnet test applies a 0.1.0 file to a running node and streams through
an h2c back-end.
Fixes#18381
Updates #18483
Updates #19724
Signed-off-by: Brendan Creane <[email protected]>