feat: add recursive nameservers settings for dns challenge #372

This commit is contained in:
Jacky 2024-05-04 12:00:53 +08:00
parent d3e9d92750
commit 7be4a70824
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
22 changed files with 4517 additions and 3498 deletions

View file

@ -1,19 +0,0 @@
package cert
type ChannelWriter struct {
Ch chan []byte
}
func NewChannelWriter() *ChannelWriter {
return &ChannelWriter{
Ch: make(chan []byte, 1024),
}
}
func (cw *ChannelWriter) Write(p []byte) (n int, err error) {
n = len(p)
temp := make([]byte, n)
copy(temp, p)
cw.Ch <- temp
return n, nil
}