mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 11:37:02 +08:00
riot: only one domain func will be exec
This commit is contained in:
parent
35c302a445
commit
b727841ccc
|
@ -67,12 +67,11 @@ get_server_meta() {
|
|||
if [[ "$host" == "$domain" && "$host" != "["*"]" ]]; then
|
||||
domain="default"
|
||||
fi
|
||||
if is_function ".domain"; then
|
||||
".domain"
|
||||
fi
|
||||
local domain_func="$domain.domain"
|
||||
if [[ -n "$domain" ]] && is_function "$domain_func"; then
|
||||
if is_function "$domain_func"; then
|
||||
"$domain_func"
|
||||
elif is_function ".domain"; then
|
||||
".domain"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user