Lines Matching refs:config
101 local config="$1"
103 local wg_cfg="${wg_dir}/${config}"
111 config_get private_key "${config}" "private_key"
112 config_get listen_port "${config}" "listen_port"
113 config_get addresses "${config}" "addresses"
114 config_get mtu "${config}" "mtu"
115 config_get fwmark "${config}" "fwmark"
118 ip link del dev "${config}" 2>/dev/null
119 ip link add dev "${config}" type wireguard
122 ip link set mtu "${mtu}" dev "${config}"
125 proto_init_update "${config}" 1
138 config_foreach proto_wireguard_setup_peer "wireguard_${config}"
141 ${WG} setconf ${config} "${wg_cfg}"
150 proto_setup_failed "${config}"
173 wg show "${config}" endpoints | \
177 proto_add_host_dependency "${config}" "${address}"
180 proto_send_update "${config}"
185 local config="$1"
186 ip link del dev "${config}" >/dev/null 2>&1