Skip to content

Conversation

@toneyche
Copy link

Summary

This PR adds two new features and fixes a bug:

New Features

  1. Tailscale Auto-Update Toggle

    • Add auto-update switch in Tailscale settings page
    • Users can enable/disable automatic Tailscale updates
  2. Ethernet Network Configuration

    • Add network settings page under Device settings
    • Support DHCP and Static IP configuration
    • Allow setting static IP address, netmask, gateway, and DNS servers

Bug Fixes

  • Fix Tailscale auto-update preference parsing: The previous implementation checked for a compact JSON string, but tailscale debug prefs outputs formatted multi-line JSON. Updated to properly parse the JSON structure.

Changes

Backend (server/)

  • proto/tailscale.go: Add SetAutoUpdateReq struct
  • proto/network.go: Add Ethernet configuration structs
  • router/extensions.go: Add auto-update API routes
  • router/network.go: Add Ethernet API routes
  • service/extensions/tailscale/: Implement auto-update get/set functions
  • service/network/ethernet.go: Implement Ethernet configuration service

Frontend (web/)

  • api/extensions/tailscale.ts: Add auto-update API calls
  • api/network.ts: Add Ethernet API calls
  • pages/desktop/menu/settings/tailscale/device.tsx: Add auto-update switch
  • pages/desktop/menu/settings/device/ethernet.tsx: New Ethernet settings component
  • pages/desktop/menu/settings/device/index.tsx: Add Ethernet settings entry
  • i18n/locales/en.ts & zh.ts: Add translations

Test Plan

  • Test Tailscale auto-update toggle saves and persists correctly
  • Test Ethernet DHCP mode
  • Test Ethernet Static IP configuration
  • Verify settings are preserved after page refresh

Features:
- Add Tailscale auto-update toggle in settings UI
- Add Ethernet network configuration (DHCP/Static IP)
- Support setting static IP, netmask, gateway and DNS

Bug fixes:
- Fix Tailscale auto-update preference parsing (handle multi-line JSON output)

Changes:
- server: add Tailscale auto-update API endpoints
- server: add Ethernet network configuration API
- web: add Tailscale auto-update switch component
- web: add Ethernet settings page with DHCP/Static IP options
- i18n: add translations for new features (en/zh)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant