You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @brutella ,
Thanks for this great project at first :)
I'm testing this project running on my MBP and found a small issue:
When iPhone connects the usb cable with MBP, the camera live stream usually not working in Home App.
And I found when usb cable connected, iPhone sometimes request hap server directly from the wired network, not via wifi.
Hi @brutella ,
Thanks for this great project at first :)
I'm testing this project running on my MBP and found a small issue:
When iPhone connects the usb cable with MBP, the camera live stream usually not working in Home App.
And I found when usb cable connected, iPhone sometimes request hap server directly from the wired network, not via wifi.
hkcam/setup.go
Lines 89 to 98 in 959d664
The
iface
value isen14
instead ofen0
. then the server failed to get ip ofen14
because it only have a ipv6 address.Instead of get
localIP
fromr.Context().Value(http.LocalAddrContextKey)
, my solution is like this:remoteIP
fromreq.ControllerAddr.IPAddr
net.Interfaces()
, find the proper subnet that containsremoteIP
, return the ip of this interface.The text was updated successfully, but these errors were encountered: