Fix migrateMode dropping allowAll to default cmuxOnly

migrateMode() had no case for "allowAll" rawValue, so it fell
through to the default branch which returned .cmuxOnly. This
silently downgraded any persisted allowAll setting.
This commit is contained in:
Lawrence Chen 2026-02-18 02:12:09 -08:00
parent 21bbe80410
commit 4c42bd8078

View file

@ -44,6 +44,7 @@ struct SocketControlSettings {
switch raw {
case "off": return .off
case "cmuxOnly": return .cmuxOnly
case "allowAll": return .allowAll
// Legacy values:
case "notifications", "full": return .cmuxOnly
default: return defaultMode