fix: close resolv.conf
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
parent
670139cffa
commit
ada798a3f7
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user