1
1
mirror of https://git.sr.ht/~emersion/tlstunnel synced 2024-11-19 15:53:50 +01:00

Remove unused function

This commit is contained in:
Tom Lebreux 2024-05-01 23:02:16 -04:00 committed by Simon Ser
parent 70551807b9
commit 109d44b113

@ -253,17 +253,6 @@ func parseBackend(backend *Backend, cfg *backendConfig) error {
return nil return nil
} }
func parseFrontendTLS(srv *Server, d *scfg.Directive) (unmanaged bool, err error) {
for _, child := range d.Children {
switch child.Name {
case "load":
default:
return false, fmt.Errorf("unknown %q directive", child.Name)
}
}
return unmanaged, nil
}
func parseTLSOnDemand(srv *Server, cfg *tlsOnDemandConfig) error { func parseTLSOnDemand(srv *Server, cfg *tlsOnDemandConfig) error {
if srv.ACMEConfig.OnDemand == nil { if srv.ACMEConfig.OnDemand == nil {
srv.ACMEConfig.OnDemand = &certmagic.OnDemandConfig{} srv.ACMEConfig.OnDemand = &certmagic.OnDemandConfig{}