Skip to content

Commit

Permalink
Rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
atavism committed May 31, 2024
1 parent eec6441 commit 7ffc19e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hit_lc_proxy.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 2 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ Future<void> 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();
Expand Down

0 comments on commit 7ffc19e

Please sign in to comment.