diff --git a/package/network/services/hostapd/files/radius.config b/package/network/services/hostapd/files/radius.config index ad8730748bb..a66fc2a9ac0 100644 --- a/package/network/services/hostapd/files/radius.config +++ b/package/network/services/hostapd/files/radius.config @@ -1,5 +1,6 @@ config radius option disabled '1' + option ipv6 '1' option ca_cert '/etc/radius/ca.pem' option cert '/etc/radius/cert.pem' option key '/etc/radius/key.pem' diff --git a/package/network/services/hostapd/files/radius.init b/package/network/services/hostapd/files/radius.init index 4c562c24738..b594993a562 100644 --- a/package/network/services/hostapd/files/radius.init +++ b/package/network/services/hostapd/files/radius.init @@ -12,6 +12,7 @@ radius_start() { [ "$disabled" -gt 0 ] && return + config_get_bool ipv6 "$cfg" ipv6 1 config_get ca "$cfg" ca_cert config_get key "$cfg" key config_get cert "$cfg" cert @@ -28,6 +29,7 @@ radius_start() { -s "$clients" -u "$users" \ -p "$auth_port" -P "$acct_port" \ -i "$identity" + [ "$ipv6" -gt 0 ] && procd_append_param command -6 procd_close_instance }