# | Line 224 | Line 224 | bool ether_init(void) | |
---|---|---|
224 | #ifdef HAVE_SLIRP | |
225 | // Initialize slirp library | |
226 | if (net_if_type == NET_IF_SLIRP) { | |
227 | < | slirp_init(); |
227 | > | if (slirp_init() < 0) { |
228 | > | sprintf(str, GetString(STR_SLIRP_NO_DNS_FOUND_WARN)); |
229 | > | WarningAlert(str); |
230 | > | return false; |
231 | > | } |
232 | ||
233 | // Open slirp output pipe | |
234 | int fds[2]; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |