Skip to content

Commit

Permalink
Merge pull request #11 from RikitoNoto/10_fix_windows_bug
Browse files Browse the repository at this point in the history
#10 version up dart_ping
  • Loading branch information
ivirtex authored Aug 4, 2023
2 parents 0752f9d + 4ebd8e6 commit 59ad63f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencies:
cupertino_icons: ^1.0.2

lan_scanner:
path: C:\Users\hjozw\OneDrive\Dokumenty\Development\Flutter\lan_scanner
path: ../

dev_dependencies:
flutter_test:
Expand Down
3 changes: 2 additions & 1 deletion lib/src/lan_scanner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ class LanScanner {
final Ping pingRequest;

try {
pingRequest = Ping(hostToPing, count: 1, timeout: timeout);
pingRequest =
Ping(hostToPing, count: 1, timeout: timeout, forceCodepage: true);
} catch (exc) {
if (exc is UnimplementedError &&
(exc.message?.contains('iOS') ?? false)) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ environment:
sdk: ">=2.12.0 <3.0.0"

dependencies:
dart_ping: ^7.0.1
dart_ping: ^9.0.0

dev_dependencies:
dart_code_metrics: ^4.16.0
Expand Down

0 comments on commit 59ad63f

Please sign in to comment.