mirror of
https://github.com/ConvoyPanel/panel.git
synced 2026-06-02 14:29:29 +08:00
Port of PR #149 by ShiSHcat, refactored: - NetworkService: extract NIC_MODELS constant, setConfigField() helper, and applyBaseNet0Fields() to eliminate the duplicated model/bridge/firewall update-or-insert pattern shared by ensureNet0BaseConfig() and updateRateLimit(); add normalizeNetConfigForComparison() to skip no-op net0 writes; harden parseConfig() against empty components and values without '=' - AllocationService: skip updateHardware() call when cores/memory already match - CloudinitService: skip updateHostname() and updateIpConfig() when values already match; delete ipconfig0 key when desired config is empty - UpdatePasswordJob: raise tries to 15 with 30 s backoff to survive slow disk-resize operations during VM creation