netifd: fix typo in dhcp protocol handler, fixes reqopt handling (#11609)
[openwrt/openwrt.git] / package / netifd / files / lib / netifd / proto / dhcp.sh
index 1080dbf5edd511611b86961f2b64a119d2341105..70cfc86d18018a927172c31965c5439bd40396fc 100755 (executable)
@@ -22,7 +22,7 @@ proto_dhcp_setup() {
 
        local opt dhcpopts
        for opt in $reqopts; do
-               append dhcpopts "-O opt"
+               append dhcpopts "-O $opt"
        done
 
        [ "$broadcast" = 1 ] && broadcast="-O broadcast" || broadcast=