mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
bhyve: change a default address from ANY to localhost
Discussed with: grehan, jhb
This commit is contained in:
parent
2cdff9918e
commit
3a92927bb6
1 changed files with 2 additions and 6 deletions
|
|
@ -1840,11 +1840,7 @@ init_gdb(struct vmctx *_ctx)
|
|||
|
||||
saddr = get_config_value("gdb.address");
|
||||
if (saddr == NULL) {
|
||||
#if defined(INET)
|
||||
saddr = "0.0.0.0";
|
||||
#elif defined(INET6)
|
||||
saddr = "[::]";
|
||||
#endif
|
||||
saddr = "localhost";
|
||||
}
|
||||
|
||||
debug("==> starting on %s:%s, %swaiting\n",
|
||||
|
|
@ -1860,7 +1856,7 @@ init_gdb(struct vmctx *_ctx)
|
|||
memset(&hints, 0, sizeof(hints));
|
||||
hints.ai_family = AF_UNSPEC;
|
||||
hints.ai_socktype = SOCK_STREAM;
|
||||
hints.ai_flags = AI_NUMERICHOST | AI_NUMERICSERV | AI_PASSIVE;
|
||||
hints.ai_flags = AI_NUMERICSERV | AI_PASSIVE;
|
||||
|
||||
if (getaddrinfo(saddr, sport, &hints, &gdbaddr) != 0)
|
||||
err(1, "gdb address resolve");
|
||||
|
|
|
|||
Loading…
Reference in a new issue