feat:mosdns个别版本解除网段限制

This commit is contained in:
okxlin 2023-10-11 00:43:19 +08:00
parent 01f98906b5
commit cc7715c6f2
3 changed files with 6 additions and 6 deletions

View File

@ -2,4 +2,4 @@ CONTAINER_NAME="mosdns"
PANEL_APP_PORT_HTTP="40028"
PANEL_APP_PORT_API="40029"
DATA_PATH="./data"
SUBNET_SUFFIX="240"
SUBNET="172.18.0.240"

View File

@ -23,10 +23,10 @@ additionalProperties:
labelZh: 数据文件夹路径
required: true
type: text
- default: 240
- default: 172.18.0.240
edit: true
envKey: SUBNET_SUFFIX
labelEn: Subnet suffix (172.18.0.x)
labelZh: 子网后缀 (172.18.0.x)
envKey: SUBNET
labelEn: Subnet IP
labelZh: 子网 IP
required: true
type: text

View File

@ -5,7 +5,7 @@ services:
restart: always
networks:
1panel-network:
ipv4_address: 172.18.0.${SUBNET_SUFFIX}
ipv4_address: ${SUBNET}
ports:
- "${PANEL_APP_PORT_HTTP}:53/tcp"
- "${PANEL_APP_PORT_HTTP}:53/udp"