riot: add domain box[0-9]

This commit is contained in:
xiongdian.me 2023-08-01 23:38:49 +08:00
parent 5938ca8d22
commit 2ecdf945a9

View File

@ -70,6 +70,13 @@ get_server_meta() {
RET_USERNAME=root RET_USERNAME=root
RET_TRUST_SERVER=1 RET_TRUST_SERVER=1
;; ;;
box[0-9] )
RET_HOSTNAME=$host
RET_PORT=${RET_PORT:-12022}
RET_USERNAME=${RET_USERNAME:-root}
RET_JUMP_SERVER="root@$domain.ibd.ink:12022"
RET_TRUST_SERVER=1
;;
* ) * )
test -z "$domain" || fmt_warning "unknown domain: \"$domain\". will try as host name" test -z "$domain" || fmt_warning "unknown domain: \"$domain\". will try as host name"
RET_HOSTNAME="$remote" RET_HOSTNAME="$remote"