MCPcopy Index your code
hub / github.com/coder/coder / Set

Method Set

vpn/router.go:24–30  ·  view source on GitHub ↗
(cfg *router.Config)

Source from the content-addressed store, hash-verified

22}
23
24func (v *vpnRouter) Set(cfg *router.Config) error {
25 if cfg == nil {
26 return nil
27 }
28 req := convertRouterConfig(*cfg)
29 return v.tunnel.ApplyNetworkSettings(v.tunnel.ctx, req)
30}
31
32func (*vpnRouter) Close() error {
33 // There's no cleanup that we need to initiate from within the tunnel.

Callers

nothing calls this directly

Calls 2

convertRouterConfigFunction · 0.85
ApplyNetworkSettingsMethod · 0.80

Tested by

no test coverage detected