@@ -178,6 +178,8 @@ abstract class ConfigOptions {
178178
179179 static final allowConnectionFromLan = PreferencesNotifier .create <bool , bool >("allow-connection-from-lan" , false );
180180
181+ static final lanSharingPassword = PreferencesNotifier .create <String , String >("lan_sharing_password" , "" );
182+
181183 static final enableFakeDns = PreferencesNotifier .create <bool , bool >("enable-fake-dns" , false );
182184
183185 // static final enableDnsRouting = PreferencesNotifier.create<bool, bool>("enable-dns-routing", true);
@@ -342,7 +344,11 @@ abstract class ConfigOptions {
342344 });
343345
344346 /// preferences to exclude from share and export
345- static final privatePreferencesKeys = {"extra-security.warp.license-key" , "unblocker.warp.license-key" };
347+ static final privatePreferencesKeys = {
348+ "extra-security.warp.license-key" ,
349+ "unblocker.warp.license-key" ,
350+ "lan-sharing-password" ,
351+ };
346352
347353 static final Map <String , StateNotifierProvider <PreferencesNotifier , dynamic >> preferences = {
348354 "region" : region,
@@ -373,6 +379,7 @@ abstract class ConfigOptions {
373379 "clash-api-port" : clashApiPort,
374380 // "bypass-lan": bypassLan,
375381 "allow-connection-from-lan" : allowConnectionFromLan,
382+ "lan-sharing-password" : lanSharingPassword,
376383 // "enable-dns-routing": enableDnsRouting,
377384
378385 // mux
@@ -492,6 +499,7 @@ abstract class ConfigOptions {
492499 setSystemProxy: mode == ServiceMode .systemProxy,
493500 // bypassLan: ref.watch(bypassLan),
494501 allowConnectionFromLan: ref.watch (allowConnectionFromLan),
502+ lanSharingPassword: ref.watch (lanSharingPassword),
495503 enableFakeDns: ref.watch (enableFakeDns),
496504 // enableDnsRouting: ref.watch(enableDnsRouting),
497505 independentDnsCache: ref.watch (independentDnsCache),
0 commit comments