mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-06-04 22:57:20 +02:00
Fixed #231
- Added higher propagation timeout for netcup - Fixed bug in CICD script
This commit is contained in:
parent
cfcd10d64f
commit
301072db90
@ -28,6 +28,7 @@ var defTemplate string = `package acmedns
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/go-acme/lego/v4/challenge"
|
"github.com/go-acme/lego/v4/challenge"
|
||||||
{{imports}}
|
{{imports}}
|
||||||
@ -282,6 +283,18 @@ func main() {
|
|||||||
}
|
}
|
||||||
return ` + providerName + `.NewDNSProviderConfig(cfg)`
|
return ` + providerName + `.NewDNSProviderConfig(cfg)`
|
||||||
|
|
||||||
|
//Add fixed for Netcup timeout
|
||||||
|
if strings.ToLower(providerName) == "netcup" {
|
||||||
|
codeSegment = `
|
||||||
|
case "` + providerName + `":
|
||||||
|
cfg := ` + providerName + `.NewDefaultConfig()
|
||||||
|
err := json.Unmarshal([]byte(js), &cfg)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
cfg.PropagationTimeout = 1200 * time.Second
|
||||||
|
return ` + providerName + `.NewDNSProviderConfig(cfg)`
|
||||||
|
}
|
||||||
generatedConvertcode += codeSegment
|
generatedConvertcode += codeSegment
|
||||||
importList += ` "github.com/go-acme/lego/v4/providers/dns/` + providerName + "\"\n"
|
importList += ` "github.com/go-acme/lego/v4/providers/dns/` + providerName + "\"\n"
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,7 @@ go run ./extract.go
|
|||||||
go run ./extract.go -- "win7"
|
go run ./extract.go -- "win7"
|
||||||
|
|
||||||
echo "Cleaning up lego"
|
echo "Cleaning up lego"
|
||||||
|
sleep 2
|
||||||
# Comment the line below if you dont want to pull everytime update
|
# Comment the line below if you dont want to pull everytime update
|
||||||
# This is to help go compiler to not load all the lego source file when compile
|
# This is to help go compiler to not load all the lego source file when compile
|
||||||
#rm -rf ./lego/
|
#rm -rf ./lego/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user