xfrpc: allow server_addr ip and domain
Signed-off-by: Dengfeng Liu <liudf0716@gmail.com>
This commit is contained in:
parent
88aa9c2e2d
commit
a7e3f28c37
1 changed files with 4 additions and 2 deletions
|
@ -34,14 +34,16 @@ handle_xfrpc() {
|
||||||
;;
|
;;
|
||||||
http|https)
|
http|https)
|
||||||
config_get custom_domains "$name" custom_domains
|
config_get custom_domains "$name" custom_domains
|
||||||
echo "custom_domains = $custom_domains" >> "$config"
|
[ -z "$custom_domains" ] || echo "custom_domains = $custom_domains" >> "$config"
|
||||||
|
config_get subdomain "$name" subdomain
|
||||||
|
[ -z "$subdomain" ] || echo "subdomain = $subdomain" >> "$config"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$name" = "common" ]; then
|
if [ "$name" = "common" ]; then
|
||||||
uci_validate_section xfrpc xfrp "$name" \
|
uci_validate_section xfrpc xfrp "$name" \
|
||||||
'server_addr:ipaddr' \
|
'server_addr:host' \
|
||||||
'server_port:uinteger' \
|
'server_port:uinteger' \
|
||||||
'token:string:'
|
'token:string:'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue