mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-22 22:03:43 +03:00
sd-bus: allow localhost addresses
By settings AI_ADDRCONFIG in hints we cannot for example resolve "localhost" when the local machine only has a loopback interface. This seems like an unnecessary restriction, drop it. Inspired by https://bugzilla.redhat.com/show_bug.cgi?id=1839007. (cherry picked from commit d0e5db44d9e1cf61ca75c8a86ffed19cc1b7fe5f) (cherry picked from commit 5e8bf33de11c36e78f66cd5648a7643a417c561c)
This commit is contained in:
parent
a4bf35c201
commit
3e36cd9c96
3
TODO
3
TODO
@ -427,6 +427,9 @@ Features:
|
|||||||
* sd-bus: add vtable flag, that may be used to request client creds implicitly
|
* sd-bus: add vtable flag, that may be used to request client creds implicitly
|
||||||
and asynchronously before dispatching the operation
|
and asynchronously before dispatching the operation
|
||||||
|
|
||||||
|
* sd-bus: parse addresses given in sd_bus_set_addresses immediately and not
|
||||||
|
only when used. Add unit tests.
|
||||||
|
|
||||||
* make use of ethtool veth peer info in machined, for automatically finding out
|
* make use of ethtool veth peer info in machined, for automatically finding out
|
||||||
host-side interface pointing to the container.
|
host-side interface pointing to the container.
|
||||||
|
|
||||||
|
@ -784,7 +784,6 @@ static int parse_tcp_address(sd_bus *b, const char **p, char **guid) {
|
|||||||
int r;
|
int r;
|
||||||
struct addrinfo *result, hints = {
|
struct addrinfo *result, hints = {
|
||||||
.ai_socktype = SOCK_STREAM,
|
.ai_socktype = SOCK_STREAM,
|
||||||
.ai_flags = AI_ADDRCONFIG,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
assert(b);
|
assert(b);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user