Skip to content

Commit

Permalink
documentation update for hostAddresses
Browse files Browse the repository at this point in the history
  • Loading branch information
jnstahl committed Feb 3, 2024
1 parent 2b86da7 commit 0a4f3ac
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@

## 1.5.0
Fixed #22: NsdServiceInfo now includes a list of addresses for the service (ipv4 or ipv6)
*addresses are currently not supported on iOS


## 1.4.0
Added support for Kotlin 1.5.20

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ this [video](https://developer.apple.com/videos/play/wwdc2020/10110/).

*Note that you don't need to worry about modifying `Info.plist` if you are just testing with a simulator.*

*The iOS and macOS implementations currently do not return *hostAddresses*

## Note about Windows

Windows does not have native support for MDNS, therefore it is implemented using the https://github.com/mjansson/mdns library
Expand Down
1 change: 1 addition & 0 deletions lib/flutter_nsd.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class FlutterNsd {
/// Info class for holding discovered service
class NsdServiceInfo {
final String? hostname;
/// A list of strings containing the known addresses for this host (Ipv4 and Ipv6). The iOS implementation currently returns null
final List<String>? hostAddresses;
final int? port;
final String? name;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_nsd
description: A Flutter plugin for Network Service Discovery (mDNS) that uses platform API on Android, iOS, MacOS and Windows.
version: 1.4.0
version: 1.5.0
homepage: https://github.com/Nimrodda/flutter_nsd

environment:
Expand Down

0 comments on commit 0a4f3ac

Please sign in to comment.