diff --git a/man/systemd.netdev.xml b/man/systemd.netdev.xml
index c7199889f0..b4b7fc0b43 100644
--- a/man/systemd.netdev.xml
+++ b/man/systemd.netdev.xml
@@ -1566,14 +1566,14 @@
RouteTable=
The table identifier for the routes to the addresses specified in the
- AllowedIPs=. Takes the special value off, one of the
- predefined names default, main, and
- local, names defined in RouteTable= in
+ AllowedIPs=. Takes a negative boolean value, one of the predefined names
+ default, main, and local, names
+ defined in RouteTable= in
networkd.conf5,
or a number in the range 1…4294967295. When off the routes to the
addresses specified in the AllowedIPs= setting will not be configured.
- Defaults to off. This setting will be ignored when the same setting is
- specified in the [WireGuardPeer] section.
+ Defaults to false. This setting will be ignored when the same setting is specified in the
+ [WireGuardPeer] section.
@@ -1673,9 +1673,9 @@
RouteTable=
The table identifier for the routes to the addresses specified in the
- AllowedIPs=. Takes the special value off, one of the
- predefined names default, main, and
- local, names defined in RouteTable= in
+ AllowedIPs=. Takes a negative boolean value, one of the predefined names
+ default, main, and local, names
+ defined in RouteTable= in
networkd.conf5,
or a number in the range 1…4294967295. Defaults to unset, and the value specified in the
same setting in the [WireGuard] section will be used.
diff --git a/src/network/netdev/wireguard.c b/src/network/netdev/wireguard.c
index 2b26a92f5d..88f668753a 100644
--- a/src/network/netdev/wireguard.c
+++ b/src/network/netdev/wireguard.c
@@ -895,7 +895,7 @@ int config_parse_wireguard_route_table(
assert(data);
assert(userdata);
- if (isempty(rvalue) || streq(rvalue, "off")) {
+ if (isempty(rvalue) || parse_boolean(rvalue) == 0) {
*table = 0; /* Disabled. */
return 0;
}
@@ -947,7 +947,7 @@ int config_parse_wireguard_peer_route_table(
return 0;
}
- if (streq(rvalue, "off")) {
+ if (parse_boolean(rvalue) == 0) {
peer->route_table = 0; /* Disabled. */
peer->route_table_set = true;
TAKE_PTR(peer);