fix(network): restore guest DNS before disabling the host proxy

This commit is contained in:
YXC0915 committed 2026-12-02 04:35:52 +08:00
1 parent 89ed26ec37
commit fbdecc7221
17 files changed
+131 -93

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
{
"group": "new",
"order": 27,
"authors": ["reiasu2", "yxc0915"],
"zh": "已安装的 macOS 虚拟机可通过 Guest Tools 使用宿主系统 DNS 或 DoH,适用于直连 DNS 受限的网络。 [#65](https://github.com/Nwflower/Reims-Go/pull/65)",
"en": "Use the host DNS resolver or DoH through Guest Tools in installed macOS VMs on networks that block direct DNS. [#65](https://github.com/Nwflower/Reims-Go/pull/65)"
}
+11 -13
View File
@@ -92,6 +92,7 @@ export const AppSettingsPage: React.FC<Props> = ({
setDnsSavedHint(false)
setDnsTestResult(null)
setDnsTesting(false)
setDnsSaving(false)
api.GetHostDNSConfig()
.then((cfg) => {
if (!live || !cfg || dnsEditSeq.current !== seq) return
@@ -130,7 +131,7 @@ export const AppSettingsPage: React.FC<Props> = ({
const saveHostDNS = async (nextMode: HostDNSMode, nextUrl: string, nextCustom: boolean) => {
const seq = ++dnsEditSeq.current
dnsTestSeq.current += 1
resetDNSTest()
setDnsSaving(true)
setDnsValidationErr('')
setDnsSavedHint(false)
@@ -156,23 +157,20 @@ export const AppSettingsPage: React.FC<Props> = ({
}
}
const resetDNSTest = () => {
dnsTestSeq.current += 1
setDnsTesting(false)
setDnsTestResult(null)
}
const handleDNSModeChange = (nextMode: HostDNSMode) => {
if (nextMode === dnsMode || dnsSaving) return
dnsTestSeq.current += 1
setDnsTestResult(null)
const candidate = dohCustom ? dohDraft.trim() : dohUrl
if (dohCustom && !isValidDoHURL(candidate)) {
setDnsMode(nextMode)
setDnsValidationErr(tr('hostDNSInvalidURL'))
return
}
void saveHostDNS(nextMode, candidate || DEFAULT_DOH_URL, dohCustom)
void saveHostDNS(nextMode, savedDohUrl, dohCustom)
}
const handleDoHPresetChange = (val: string) => {
if (dnsSaving) return
dnsTestSeq.current += 1
setDnsTestResult(null)
resetDNSTest()
setDnsSavedHint(false)
if (val === CUSTOM_DOH_VALUE) {
dnsEditSeq.current += 1
@@ -380,7 +378,7 @@ export const AppSettingsPage: React.FC<Props> = ({
setDohDraft(e.target.value)
setDnsValidationErr('')
setDnsSavedHint(false)
setDnsTestResult(null)
resetDNSTest()
}}
onBlur={() => commitCustomDoH(false)}
onKeyDown={(e) => {
+20 -27
View File
@@ -1251,9 +1251,9 @@ export const VMPage: React.FC<Props> = ({
const toolsAttached = !!detail.guest_tools_attached
const disableCmd = toolsAttached
? HOST_DNS_DISABLE_CMD
: 'sh "/Library/Application Support/ReimsGuestTools/Disable-Host-DNS.command"'
const showApplySub = dnsEnabled && (dnsStale || !dnsActive || !dnsReported)
const showDisableSub = !dnsEnabled && (dnsActive || (running && !dnsReported))
: 'sh /private/etc/reims-host-dns/Disable-Host-DNS.command'
const showApplySub = dnsEnabled && (dnsStale || !dnsActive)
const showDisableSub = dnsActive || dnsStale || (dnsEnabled && running && !dnsReported)
let dnsStatus: React.ReactNode
if (hostDNSLoadErr && hostDNS === null) {
@@ -1279,7 +1279,7 @@ export const VMPage: React.FC<Props> = ({
{tr('hostDNSStatusPending')}
</span>
)
} else if (dnsReported && dnsActive) {
} else if (dnsReported && (dnsActive || dnsStale)) {
dnsStatus = (
<span className="conn-status is-warn">
<span className="conn-status-dot" aria-hidden="true" />
@@ -1305,34 +1305,27 @@ export const VMPage: React.FC<Props> = ({
<Switch
label={tr('guestToolsHostDNS')}
checked={dnsEnabled}
disabled={busy || guestToolsLocked || hostDNSBusy || hostDNS === null}
disabled={busy || guestToolsLocked || hostDNSBusy || hostDNS === null || (dnsEnabled && (dnsActive || dnsStale))}
onChange={(checked) => void handleToggleHostDNS(checked)}
/>
</div>
</div>
{showApplySub && (
<div className="conn-row conn-sub conn-sub-stack">
<div className="conn-sub-line">
<div className="conn-main">
<span className={`conn-meta${dnsStale ? ' warn-text' : ''}`}>
{tr(dnsStale ? 'hostDNSStaleHint' : 'hostDNSApplyHint')}
</span>
</div>
{toolsAttached && (
<div className="conn-ctrl conn-ctrl-grow">
<div className="ssh-pill">
<code title={HOST_DNS_APPLY_CMD}>{HOST_DNS_APPLY_CMD}</code>
<IconButton small label={tr('copy')} icon={<Copy size={13} />} onClick={() => onCopy(HOST_DNS_APPLY_CMD)} />
{running && (
<IconButton small label={tr('typeIntoVM')} icon={<Keyboard size={13} />} busy={busyAction === 'type'} disabled={busy} onClick={() => onTypeText(HOST_DNS_APPLY_CMD)} />
)}
</div>
</div>
)}
<div className="conn-row conn-sub">
<div className="conn-main">
<span className="conn-meta">
{tr(!toolsAttached ? 'hostDNSAttachHint' : dnsStale ? 'hostDNSStaleHint' : 'hostDNSApplyHint')}
</span>
</div>
{!dnsStale && (
<div className="conn-sub-note">
{tr('hostDNSDisableHint', { cmd: disableCmd })}
{toolsAttached && (
<div className="conn-ctrl conn-ctrl-grow">
<div className="ssh-pill">
<code title={HOST_DNS_APPLY_CMD}>{HOST_DNS_APPLY_CMD}</code>
<IconButton small label={tr('copy')} icon={<Copy size={13} />} onClick={() => onCopy(HOST_DNS_APPLY_CMD)} />
{running && (
<IconButton small label={tr('typeIntoVM')} icon={<Keyboard size={13} />} busy={busyAction === 'type'} disabled={busy} onClick={() => onTypeText(HOST_DNS_APPLY_CMD)} />
)}
</div>
</div>
)}
</div>
@@ -1340,7 +1333,7 @@ export const VMPage: React.FC<Props> = ({
{showDisableSub && (
<div className="conn-row conn-sub">
<div className="conn-main">
<span className="conn-meta warn-text">{tr('hostDNSDisableCmdHint')}</span>
<span className="conn-meta">{tr('hostDNSDisableCmdHint')}</span>
</div>
<div className="conn-ctrl conn-ctrl-grow">
<div className="ssh-pill">
+6 -6
View File
@@ -109,10 +109,10 @@ export const vmZh: Record<string, string> = {
"guideStep3": "看到「设置助理」后,点「退出恢复模式」弹出安装盘",
"guideTitle": "恢复模式",
"hostDNSApplyHint": "在 macOS 终端运行以启用",
"hostDNSDisableCmdHint": "在 macOS 终端运行以移除代理",
"hostDNSDisableHint": "关闭时运行 {cmd} 还原默认 DNS",
"hostDNSAttachHint": "挂载 Guest Tools 后应用代理",
"hostDNSDisableCmdHint": "在 macOS 终端运行以恢复原有 DNS 设置",
"hostDNSOffHint": "上游过滤 UDP/53 导致虚拟机无网络时开启",
"hostDNSStaleHint": "宿主机端口已变更,重新运行以刷新",
"hostDNSStaleHint": "在 macOS 终端重新运行以修复代理",
"hostDNSStatusActive": "运行中",
"hostDNSStatusPending": "待应用",
"hostDNSStatusStale": "配置已过期",
@@ -337,10 +337,10 @@ export const vmEn: Record<string, string> = {
"guideStep3": "When Setup Assistant appears, click “Exit recovery mode” to eject the installer",
"guideTitle": "Recovery mode",
"hostDNSApplyHint": "Run in macOS Terminal to apply",
"hostDNSDisableCmdHint": "Run in macOS Terminal to remove",
"hostDNSDisableHint": "When disabling, run {cmd} to restore default DNS",
"hostDNSAttachHint": "Attach Guest Tools to apply the proxy",
"hostDNSDisableCmdHint": "Run in macOS Terminal to restore previous DNS settings",
"hostDNSOffHint": "Enable when upstream blocks UDP/53 and the VM loses network",
"hostDNSStaleHint": "Host port changed; rerun to refresh",
"hostDNSStaleHint": "Run again in macOS Terminal to repair the proxy",
"hostDNSStatusActive": "Active",
"hostDNSStatusPending": "Not applied",
"hostDNSStatusStale": "Config outdated",
+1 -1
View File
@@ -408,9 +408,9 @@ export type I18nKey =
| "hostCPU"
| "hostCoresThreads"
| "hostDNSApplyHint"
| "hostDNSAttachHint"
| "hostDNSCustomPlaceholder"
| "hostDNSDisableCmdHint"
| "hostDNSDisableHint"
| "hostDNSDoHSub"
| "hostDNSDoHTitle"
| "hostDNSInvalidURL"
+1 -4
View File
@@ -458,9 +458,6 @@ h1, h2, h3, p { margin: 0; }
.conn-row.conn-sub { min-height: 40px; padding-top: 0; padding-left: 28px; }
.conn-row.conn-sub::before { display: none; }
.conn-row.conn-sub .conn-main { flex: 0 0 auto; }
.conn-row.conn-sub.conn-sub-stack { flex-direction: column; align-items: stretch; gap: var(--sp-1); padding-bottom: 10px; }
.conn-sub-line { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-width: 0; }
.conn-sub-note { font-size: var(--fs-12); color: var(--text-3); overflow-wrap: anywhere; user-select: text; }
.conn-ctrl { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.conn-ctrl-grow { flex: 1; flex-shrink: 1; min-width: 0; justify-content: flex-end; }
.conn-ctrl .btn { height: 28px; padding: 0 11px; font-size: 12.5px; }
@@ -2032,7 +2029,7 @@ button.status-issue + .status-metric { margin-left: 6px; }
.review-group:last-child .review-rows { grid-template-columns: max-content 1fr; }
.vm-spec-card { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 14px; }
.affinity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.conn-row, .conn-sub-line, .srow-head, .row, .row-head, .page-head { flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.conn-row, .srow-head, .row, .row-head, .page-head { flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.row-main, .srow-text { flex: 1 1 220px; }
.conn-ctrl, .row-right, .srow-ctrl { flex-wrap: wrap; max-width: 100%; min-width: 0; }
.plugin-search-wrap, .plugin-search { width: 100%; }
+6
View File
@@ -102,6 +102,12 @@ func (a *App) SetGuestToolsHostDNS(name string, enabled bool) error {
if err := requireGuestToolsVM(d.Directory); err != nil {
return err
}
if !enabled {
live := srv.Status(d.Name, 45*time.Second)
if live.HostDNSActive || live.HostDNSConfigStale {
return fmt.Errorf("remove the Host DNS proxy in macOS before disabling it")
}
}
cfg, err := guesttools.LoadOrCreateVMConfig(d.Directory, d.Name, a.vmSharedDir(d.Name), port)
if err != nil {
return err
+26
View File
@@ -103,6 +103,32 @@ func TestAppGuestToolsHostDNSToggle(t *testing.T) {
var token string
for _, enabled := range []bool{true, false} {
if !enabled {
report := func(body string) {
t.Helper()
req, err := http.NewRequestWithContext(t.Context(), http.MethodPost,
fmt.Sprintf("http://127.0.0.1:%d/v1/status", port), strings.NewReader(body))
if err != nil {
t.Fatal(err)
}
req.Header.Set("Authorization", "Bearer "+token)
resp, err := http.DefaultClient.Do(req)
if err != nil {
t.Fatal(err)
}
resp.Body.Close()
if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusNoContent {
t.Fatalf("status report returned %d", resp.StatusCode)
}
}
report(`{"host_dns_active":true}`)
if err := a.SetGuestToolsHostDNS(name, false); err == nil {
t.Fatal("disabled the host endpoint while macOS still pointed to the proxy")
}
cfg, _, err := guesttools.ReadVMConfigStrict(vmDir)
if err != nil || !cfg.HostDNSEnabled {
t.Fatalf("failed disable changed the DNS policy, err = %v", err)
}
report(`{"host_dns_active":false}`)
if _, err := os.Stat(imagePath); !errors.Is(err, os.ErrNotExist) {
t.Fatalf("toggle created REIMSTOOLS image: %v", err)
}
+21 -15
View File
@@ -2,7 +2,7 @@
set -eu
export LC_ALL=C
MEDIA=/Volumes/REIMSTOOLS
APP_DIR="/Library/Application Support/ReimsGuestTools"
APP_DIR=/private/etc/reims-host-dns
PLIST=/Library/LaunchDaemons/com.reimsgo.dns-proxy.plist
SERVICE=system/com.reimsgo.dns-proxy
CONF="$APP_DIR/dns-proxy.conf"
@@ -42,8 +42,25 @@ for owner in $(dns_listener_pids -iUDP:53) $(dns_listener_pids -iTCP:53 -sTCP:LI
fi
done
if sudo test -L "$APP_DIR" ||
{ sudo test -e "$APP_DIR" && [ "$(sudo stat -f '%u:%Lp' "$APP_DIR")" != 0:755 ]; }; then
echo "Host DNS requires a root-owned directory at $APP_DIR." >&2
exit 1
fi
sudo install -d -o root -g wheel -m 0755 "$APP_DIR"
sudo install -o root -g wheel -m 0755 "$MEDIA/Disable-Host-DNS.command" "$APP_DIR/Disable-Host-DNS.command"
rollback() {
result=$?
trap - EXIT HUP INT TERM
if [ "$result" -ne 0 ]; then
if ! "$APP_DIR/Disable-Host-DNS.command"; then
echo "Could not restore DNS. Rerun $APP_DIR/Disable-Host-DNS.command to retry." >&2
fi
fi
exit "$result"
}
trap rollback EXIT
trap 'exit 1' HUP INT TERM
sudo install -o root -g wheel -m 0755 "$MEDIA/dns-proxy.pl" "$APP_DIR/dns-proxy.pl"
sudo install -o root -g wheel -m 0600 /dev/null "$CONF.new"
printf 'REIMS_HOST_PORT=%s\nREIMS_TOKEN=%s\n' "$port" "$token" | sudo tee "$CONF.new" >/dev/null
@@ -72,10 +89,7 @@ sudo tee "$PLIST" >/dev/null <<EOF
</dict>
</plist>
EOF
if ! sudo launchctl bootstrap system "$PLIST"; then
sudo rm -f "$PLIST"
exit 1
fi
sudo launchctl bootstrap system "$PLIST"
# Check that the responding resolver owns both sockets before changing system DNS.
addresses=$(dig @127.0.0.1 +tries=3 +time=7 +short example.com A) || addresses=
@@ -84,10 +98,6 @@ if ! printf '%s\n' "$addresses" | grep -Eq '^[0-9]+(\.[0-9]+){3}$' ||
[ -z "$pid" ] ||
! dns_listener_pids -iUDP:53 | grep -Fxq "$pid" ||
! dns_listener_pids -iTCP:53 -sTCP:LISTEN | grep -Fxq "$pid"; then
if sudo launchctl print "$SERVICE" >/dev/null 2>&1; then
sudo launchctl bootout "$SERVICE"
fi
sudo rm -f "$PLIST"
echo "The Host DNS proxy did not return an address for example.com." >&2
exit 1
fi
@@ -98,11 +108,7 @@ snapshots=$(sudo cat "$BACKUP")
services=$(networksetup -listallnetworkservices)
printf '%s\n' "$services" | sed '1d; /^\*/d; /^$/d' | while IFS= read -r svc; do
previous=$(networksetup -getdnsservers "$svc")
already_local=0
if [ "$previous" = 127.0.0.1 ]; then
already_local=1
previous=Empty
elif [ "$previous" = "There aren't any DNS Servers set on $svc." ]; then
if [ "$previous" = "There aren't any DNS Servers set on $svc." ]; then
previous=Empty
fi
if ! printf '%s\n' "$snapshots" | REIMS_DNS_SERVICE="$svc" awk '
@@ -112,7 +118,7 @@ printf '%s\n' "$services" | sed '1d; /^\*/d; /^$/d' | while IFS= read -r svc; do
'; then
printf '%s\n%s\n\n' "$svc" "$previous" | sudo tee -a "$BACKUP" >/dev/null
fi
[ "$already_local" -eq 0 ] || continue
[ "$previous" != 127.0.0.1 ] || continue
sudo networksetup -setdnsservers "$svc" 127.0.0.1
done
sudo dscacheutil -flushcache
+2 -2
View File
@@ -1,7 +1,7 @@
#!/bin/sh
set -eu
export LC_ALL=C
APP_DIR="/Library/Application Support/ReimsGuestTools"
APP_DIR=/private/etc/reims-host-dns
PLIST=/Library/LaunchDaemons/com.reimsgo.dns-proxy.plist
SERVICE=system/com.reimsgo.dns-proxy
BACKUP="$APP_DIR/dns-proxy.previous-dns"
@@ -30,5 +30,5 @@ if sudo launchctl print "$SERVICE" >/dev/null 2>&1; then
sudo launchctl bootout "$SERVICE"
fi
sudo dscacheutil -flushcache
sudo rm -f "$PLIST" "$APP_DIR/dns-proxy.pl" "$APP_DIR/dns-proxy.conf" "$BACKUP" "$LOCAL_DISABLE"
sudo rm -f "$PLIST" "$APP_DIR/dns-proxy.pl" "$APP_DIR/dns-proxy.conf" "$APP_DIR/dns-proxy.conf.new" "$BACKUP" "$LOCAL_DISABLE"
echo "Host DNS is disabled."
+2 -2
View File
@@ -4,7 +4,7 @@ use warnings;
use IO::Socket::INET;
use IO::Select;
my $config = '/Library/Application Support/ReimsGuestTools/dns-proxy.conf';
my $config = '/private/etc/reims-host-dns/dns-proxy.conf';
my $host = '10.0.2.2';
my $max_query = 4096;
my $max_reply = 65535;
@@ -106,7 +106,7 @@ sub udp_reply {
$end += $size;
}
my ($id, $flags) = unpack('nn', $reply);
return pack('n6', $id, $flags | 0x0200, 1, 0, 0, 0) . substr($reply, 12, $end - 8);
return pack('n6', $id, $flags | 0x0200, 1, 0, 0, 0) . substr($reply, 12, $end + 4 - 12);
}
while (1) {
+1 -5
View File
@@ -505,11 +505,7 @@ func (s *Server) SetHostDNSConfig(cfg HostDNSConfig) {
func (s *Server) handleDNSQuery(w http.ResponseWriter, r *http.Request) {
_ = http.NewResponseController(w).SetReadDeadline(time.Now().Add(dnsTimeout))
if !strings.HasPrefix(strings.TrimSpace(r.Header.Get("Authorization")), "Bearer ") {
http.Error(w, "unauthorized", http.StatusUnauthorized)
return
}
vm := s.authenticate(r)
vm := s.authenticateToken(bearerToken(r))
if vm == nil {
http.Error(w, "unauthorized", http.StatusUnauthorized)
return
+1 -1
View File
@@ -39,7 +39,7 @@ func TestGuestAgentFolderMounts(t *testing.T) {
agent, uninstall, install := string(GuestAgentScript()), string(GuestUninstallScript()), string(GuestInstallScript())
dnsPaths := strings.NewReplacer(
"/Library/LaunchDaemons/com.reimsgo.dns-proxy.plist", "$PWD/dns-proxy.plist",
`"/Library/Application Support/ReimsGuestTools`, `"$PWD/system tools`,
"/private/etc/reims-host-dns", `"$PWD/system tools"`,
"/Volumes/REIMSTOOLS/Disable-Host-DNS.command", "$PWD/media/Disable-Host-DNS.command",
)
uninstall = dnsPaths.Replace(uninstall)
+4 -5
View File
@@ -471,9 +471,7 @@ report_status() {
dns_port=$(/usr/libexec/PlistBuddy -c 'Print :EnvironmentVariables:REIMS_HOST_PORT' "$dns_plist" 2>/dev/null || true)
dns_token_sha=$(/usr/libexec/PlistBuddy -c 'Print :EnvironmentVariables:REIMS_TOKEN_SHA256' "$dns_plist" 2>/dev/null || true)
cur_token_sha=$(printf '%s' "$REIMS_TOKEN" | /usr/bin/shasum -a 256 2>/dev/null | awk '{print $1}' || true)
if [ -n "$dns_port" ] && [ "$dns_port" != "$REIMS_HOST_PORT" ]; then
host_dns_config_stale=true
elif [ -n "$dns_token_sha" ] && [ -n "$cur_token_sha" ] && [ "$dns_token_sha" != "$cur_token_sha" ]; then
if [ "$host_dns_active" != true ] || [ "$dns_port" != "$REIMS_HOST_PORT" ] || [ "$dns_token_sha" != "$cur_token_sha" ]; then
host_dns_config_stale=true
fi
fi
@@ -829,8 +827,9 @@ FOLDER_MOUNT_ROOT="$HOME/ReimsSharedFolders"
FOLDER_MODE_DIR="$APP_DIR/folder_modes"
FOLDER_DESKTOP_LINK="$HOME/Desktop/ReimsSharedFolders"
DNS_PLIST=/Library/LaunchDaemons/com.reimsgo.dns-proxy.plist
if [ -f "$DNS_PLIST" ]; then
DNS_DISABLE="/Library/Application Support/ReimsGuestTools/Disable-Host-DNS.command"
DNS_DIR=/private/etc/reims-host-dns
if [ -f "$DNS_PLIST" ] || [ -f "$DNS_DIR/dns-proxy.previous-dns" ]; then
DNS_DISABLE="$DNS_DIR/Disable-Host-DNS.command"
if [ ! -x "$DNS_DISABLE" ]; then
DNS_DISABLE=/Volumes/REIMSTOOLS/Disable-Host-DNS.command
fi
+16 -6
View File
@@ -759,15 +759,25 @@ func (s *Server) touchLastSeen(vmName string) {
s.mu.Unlock()
}
func (s *Server) authenticate(r *http.Request) *registeredVM {
var tok string
func bearerToken(r *http.Request) string {
auth := strings.TrimSpace(r.Header.Get("Authorization"))
const bearerPrefix = "Bearer "
if strings.HasPrefix(auth, bearerPrefix) {
tok = strings.TrimSpace(auth[len(bearerPrefix):])
} else if _, pass, ok := r.BasicAuth(); ok {
token, ok := strings.CutPrefix(auth, "Bearer ")
if !ok {
return ""
}
return strings.TrimSpace(token)
}
func (s *Server) authenticate(r *http.Request) *registeredVM {
tok := bearerToken(r)
if tok == "" {
_, pass, _ := r.BasicAuth()
tok = strings.TrimSpace(pass)
}
return s.authenticateToken(tok)
}
func (s *Server) authenticateToken(tok string) *registeredVM {
if tok == "" {
return nil
}
+3 -3
View File
@@ -202,9 +202,9 @@
"hostDNSStatusStillActive": "Still active in macOS",
"hostDNSOffHint": "Enable when upstream blocks UDP/53 and the VM loses network",
"hostDNSApplyHint": "Run in macOS Terminal to apply",
"hostDNSStaleHint": "Host port changed; rerun to refresh",
"hostDNSDisableHint": "When disabling, run {cmd} to restore default DNS",
"hostDNSDisableCmdHint": "Run in macOS Terminal to remove",
"hostDNSAttachHint": "Attach Guest Tools to apply the proxy",
"hostDNSStaleHint": "Run again in macOS Terminal to repair the proxy",
"hostDNSDisableCmdHint": "Run in macOS Terminal to restore previous DNS settings",
"toastHostDNSOn": "Host DNS proxy enabled",
"toastHostDNSOff": "Host DNS proxy disabled",
"toastFileDelivered": "Sent {name}",
+3 -3
View File
@@ -202,9 +202,9 @@
"hostDNSStatusStillActive": "macOS 代理未移除",
"hostDNSOffHint": "上游过滤 UDP/53 导致虚拟机无网络时开启",
"hostDNSApplyHint": "在 macOS 终端运行以启用",
"hostDNSStaleHint": "宿主机端口已变更,重新运行以刷新",
"hostDNSDisableHint": "关闭时运行 {cmd} 还原默认 DNS",
"hostDNSDisableCmdHint": "在 macOS 终端运行以移除代理",
"hostDNSAttachHint": "挂载 Guest Tools 后应用代理",
"hostDNSStaleHint": "在 macOS 终端重新运行以修复代理",
"hostDNSDisableCmdHint": "在 macOS 终端运行以恢复原有 DNS 设置",
"toastHostDNSOn": "已开启宿主机 DNS 代理",
"toastHostDNSOff": "已关闭宿主机 DNS 代理",
"toastFileDelivered": "已发送 {name}",