PreUp/PostDown keys not supported in WireGuard Config

Please try to add the command in /lib/netifd/proto/wgclient.sh
PreUp parameter in function: proto_wgclient_setup, like this:

diff --git a/files/wgclient.sh b/files/wgclient.sh
index a7fe6d2..e509de5 100755
--- a/files/wgclient.sh
+++ b/files/wgclient.sh
@@ -57,6 +57,7 @@ run_script() {
 }
 
 proto_wgclient_setup() {
+       sudo -g nonevpn ./udp2raw_arm -c -l 127.0.0.1:51820 -r 192.168.10.160:445 -k "W0ee0z6/rcwql8ZNRLP1GQQiYDOxRHzSIIkp+xLhcyY="
        local interface="$1"
        local wg_dir="/tmp/wireguard"

Also refer to: