diff --git a/hit_lc_proxy.bash b/hit_lc_proxy.bash index 0d1f53e12..18fa4d19f 100755 --- a/hit_lc_proxy.bash +++ b/hit_lc_proxy.bash @@ -15,4 +15,4 @@ mkdir -p "$TMPDIR" echo "Generating config for ${PROXY} in ${OUTFILE}..." ../lantern-cloud/bin/ptool route dump-config --legacy "$PROXY" > "$OUTFILE" -flutter run -d macOS --dart-define="config_dir=$TMPDIR" --dart-define="proxyall=true" +flutter run -d macOS --dart-define="configdir=$TMPDIR" --dart-define="proxyall=true" diff --git a/lib/main.dart b/lib/main.dart index 2f6f97053..410934174 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -32,8 +32,8 @@ Future main() async { } if (isDesktop()) { - const configDir = String.fromEnvironment('config_dir', defaultValue: ''); - const proxyAll = bool.fromEnvironment("proxyall", defaultValue: false); + const configDir = String.fromEnvironment('configdir', defaultValue: ''); + const proxyAll = bool.fromEnvironment('proxyall', defaultValue: false); loadLibrary(configDir, proxyAll); await WebsocketImpl.instance()!.connect(); await windowManager.ensureInitialized();