1
0
mirror of https://github.com/rancher/os.git synced 2025-10-21 23:58:06 +00:00

Remove dnspatch we have not used it anymore (#2198)

This commit is contained in:
niusmallnan
2017-12-29 15:20:43 +08:00
committed by GitHub
parent c89a1f01b6
commit 8385ce5b00
3 changed files with 1 additions and 20 deletions

View File

@@ -1,18 +0,0 @@
296a297,300
> conf.update(name)
> }
>
> func (conf *resolverConfig) update(name string) {
300a305,316
> }
>
> func UpdateDnsConf() {
> resolvConf.initOnce.Do(resolvConf.init)
>
> // Ensure only one update at a time checks resolv.conf.
> if !resolvConf.tryAcquireSema() {
> return
> }
> defer resolvConf.releaseSema()
>
> resolvConf.update("/etc/resolv.conf")