Skip to content

Commit

Permalink
disable_dns
Browse files Browse the repository at this point in the history
  • Loading branch information
5eraph committed Apr 30, 2020
1 parent 7f305ab commit 02cfc91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion slirp4netns.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,10 @@ Slirp *create_slirp(void *opaque, struct slirp4netns_config *s4nn)
}
#endif
#if SLIRP_CONFIG_VERSION_MAX >= 3
cfg.disable_dns = 0;
if (s4nn->disable_dns) {
cfg.version = 3;
cfg.disable_dns = true;
cfg.disable_dns = 1;
}
#endif
slirp = slirp_new(&cfg, &libslirp_cb, opaque);
Expand Down

0 comments on commit 02cfc91

Please sign in to comment.