Skip to content

Commit ad17e76

Browse files
committed
Fix reversed discoverability
hasUser: true should equal !discoverable
1 parent 38aa90f commit ad17e76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/beowulfe/hap/HomekitRoot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public void start() {
100100
webHandler.start(new HomekitClientConnectionFactoryImpl(authInfo,
101101
registry, subscriptions, advertiser)).thenAccept(port -> {
102102
try {
103-
advertiser.setDiscoverable(authInfo.hasUser());
103+
advertiser.setDiscoverable(!authInfo.hasUser());
104104
advertiser.advertise(label, authInfo.getMac(), port);
105105
} catch (Exception e) {
106106
throw new RuntimeException(e);

0 commit comments

Comments
 (0)