point-source / dart_ping

Multi-platform network ping utility for Dart
30 stars 13 forks source link

Bug ttl on IOS #62

Open Vasilisk7 opened 3 months ago

Vasilisk7 commented 3 months ago

You forgot to throw ttl in the constructor, you can add and make a release! Thank you very much in advance.

_file dart_pingios.dart

  static DartPingIOS _init(
    String host,
    int? count,
    int interval,
    int timeout,
    int ttl,
    bool ipv6,
    PingParser? parser,
    Encoding encoding,
  ) {
    return DartPingIOS(fp.Ping(
      host,
      count: count,
      interval: interval.toDouble(),
      timeout: timeout.toDouble(),
      ipv6: ipv6,
    ));
  }