fix: close resolv.conf
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
1 parent
670139cffa
commit
ada798a3f7
1 file changed
+1
@@ -28,6 +28,7 @@ func parseResolvConf(filename string) (*types.DNS, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer fp.Close()
|
||||
|
||||
dns := types.DNS{}
|
||||
scanner := bufio.NewScanner(fp)
|
||||
|
||||
Reference in new issue
Block a user