mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
feat: add recursive nameservers settings for dns challenge #372
This commit is contained in:
parent
d3e9d92750
commit
7be4a70824
22 changed files with 4517 additions and 3498 deletions
|
@ -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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue