Details
Description
Edit: After Ming Ho helped me with information to reproduce the issue, updating the description
When the mac machine has HostName as well as LocalHostname, API returns `<hostname>+.local` as listener URL
Steps:
1. `scutil --set LocalHostName`, set it to LocalHostName
2. `scutil --set HostName`, set it to HostName
couchbase-lite-ios 20:09:40 $ scutil --set LocalHostName
|
LocalHostName [JayMachine]: LocalHostName
|
couchbase-lite-ios 20:09:53 $ scutil --get LocalHostName
|
LocalHostName
|
couchbase-lite-ios 20:14:59 $ scutil --set HostName
|
HostName [JayHostName]: HostName
|
couchbase-lite-ios 20:15:17 $ scutil --get HostName
|
HostName
|
3. Start the listener in iPhone simulator on same mac
4. Check `listener.url` contains `wss://hostname.local:4985/db`
2020-09-08 20:11:44.917955-0700 CBL_EE_Tests[61514:2035910] *** URL: (
|
"wss://HostName.local:4985/otherdb",
|
.....
|
)
|
5. Check the System Preferences > Sharing , you will see the <localhost>.local as local network name.
Expected result:
`listsner.url` should contain `wss://LocalHostName.local:4985/otherdb` instead of `wss://HostName.local:4985/otherdb`
Attachments
Issue Links
- mentioned in
-
Page Loading...