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:
parent
70551807b9
commit
109d44b113
11
config.go
11
config.go
@ -253,17 +253,6 @@ func parseBackend(backend *Backend, cfg *backendConfig) error {
|
||||
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 {
|
||||
if srv.ACMEConfig.OnDemand == nil {
|
||||
srv.ACMEConfig.OnDemand = &certmagic.OnDemandConfig{}
|
||||
|
Loading…
Reference in New Issue
Block a user