webapp: Switched to using the same multicast IP address that avahi uses.
This commit is contained in:
parent
f8cc979f6e
commit
95f17ed0de
2 changed files with 6 additions and 4 deletions
|
@ -31,11 +31,12 @@ import Control.Concurrent
|
|||
pairingPort :: PortNumber
|
||||
pairingPort = 55556
|
||||
|
||||
{- This is the All Hosts multicast group, which should reach all hosts
|
||||
- on the same network segment. -}
|
||||
{- Goal: Reach all hosts on the same network segment.
|
||||
- Method: Use same address that avahi uses. Other broadcast addresses seem
|
||||
- to not be let through some routers. -}
|
||||
multicastAddress :: SomeAddr -> HostName
|
||||
multicastAddress (IPv4Addr _) = "224.0.0.1"
|
||||
multicastAddress (IPv6Addr _) = "ff02::1"
|
||||
multicastAddress (IPv4Addr _) = "224.0.0.251"
|
||||
multicastAddress (IPv6Addr _) = "ff02::fb"
|
||||
|
||||
{- Multicasts a message repeatedly on all interfaces, with a 2 second
|
||||
- delay between each transmission. The message is repeated forever
|
||||
|
|
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -16,6 +16,7 @@ git-annex (3.20121018) UNRELEASED; urgency=low
|
|||
* webapp: Allow dashes in ssh key comments when pairing.
|
||||
* uninit: Check and abort if there are symlinks to annexed content that
|
||||
are not checked into git.
|
||||
* webapp: Switched to using the same multicast IP address that avahi uses.
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Wed, 17 Oct 2012 14:24:10 -0400
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue