refactor: remove direct DNS mode

This commit is contained in:
benya
2026-07-21 20:24:25 +03:00
parent 5e4e659cae
commit 15b5b7f792
33 changed files with 24 additions and 1148 deletions
@@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=rmm-agent-go-production
PKG_VERSION:=0.6.0
PKG_VERSION:=0.6.1
PKG_RELEASE:=1
PKG_MAINTAINER:=RMM OpenWrt
@@ -34,5 +34,5 @@ opkg install /tmp/rmm-agent-go-production_*.ipk
This package is intended for the final shell-to-Go migration when the router should keep the same RMM object identity.
Version `0.6.0` supports opt-in direct DNS updates through the UCI/LuCI settings supplied
by `luci-app-rmm-agent` `0.2.0`.
Version `0.6.1` uses the cloud tunnel exclusively and no longer discovers or publishes the
router's public WAN addresses.
@@ -3,10 +3,6 @@ config agent 'main'
option server_url 'https://rmm.example.com'
option interval_seconds '30'
option check_targets '1.1.1.1 8.8.8.8'
option direct_dns_enabled '0'
option dns_update_interval_seconds '300'
option public_ipv4_url 'https://api.ipify.org'
option public_ipv6_url 'https://api6.ipify.org'
option tunnel_identity_file '/etc/rmm-agent/tunnel_key'
option allow_insecure_http '0'
option reset_identity '0'
@@ -2,10 +2,6 @@ SERVER_URL="https://rmm.example.com"
ENROLLMENT_TOKEN=""
INTERVAL_SECONDS="30"
CHECK_TARGETS="1.1.1.1 8.8.8.8"
DIRECT_DNS_ENABLED="false"
DNS_UPDATE_INTERVAL_SECONDS="300"
PUBLIC_IPV4_URL="https://api.ipify.org"
PUBLIC_IPV6_URL="https://api6.ipify.org"
TUNNEL_IDENTITY_FILE="/etc/rmm-agent/tunnel_key"
DEVICE_ID=""
DEVICE_TOKEN=""
@@ -60,10 +60,6 @@ temporary="${SHELL_CONFIG}.tmp"
printf 'ENROLLMENT_TOKEN="%s"\n' "$(escape_value "$enrollment_token")"
printf 'INTERVAL_SECONDS="%s"\n' "$(escape_value "$(uci_get interval_seconds)")"
printf 'CHECK_TARGETS="%s"\n' "$(escape_value "$(uci_get check_targets)")"
printf 'DIRECT_DNS_ENABLED="%s"\n' "$(escape_value "$(uci_get direct_dns_enabled)")"
printf 'DNS_UPDATE_INTERVAL_SECONDS="%s"\n' "$(escape_value "$(uci_get dns_update_interval_seconds)")"
printf 'PUBLIC_IPV4_URL="%s"\n' "$(escape_value "$(uci_get public_ipv4_url)")"
printf 'PUBLIC_IPV6_URL="%s"\n' "$(escape_value "$(uci_get public_ipv6_url)")"
printf 'TUNNEL_IDENTITY_FILE="%s"\n' "$(escape_value "$(uci_get tunnel_identity_file)")"
printf 'DEVICE_ID="%s"\n' "$(escape_value "$device_id")"
printf 'DEVICE_TOKEN="%s"\n' "$(escape_value "$device_token")"