Permalink
Browse files

Cleanup hard coded entries.

  • Loading branch information...
1 parent 5eafb3b commit 51daf7ba64b5e1e432222f8b0eeb31f3b6963c9c @msantos committed Feb 9, 2010
Showing with 3 additions and 4 deletions.
  1. +1 −1 README
  2. +2 −3 src/emdns.erl
View
@@ -49,6 +49,6 @@ PING nul.local (192.168.1.10): 56 data bytes
> D = emdns:service(daap).
> emdns_server:send(D).
-5. On "ack", in iTunes, check "Devices" for a entry named "erlMOTE".
+5. On "ack", in iTunes, check "Devices" for an entry named "erlMOTE".
View
@@ -86,7 +86,7 @@ type({srv, L}) when is_list(L) ->
type = srv,
class = Class,
ttl = TTL,
- data = {0,0,1024,"nul.local"}
+ data = {0,0,1024,Domain}
};
_ ->
{err, fmt}
@@ -169,7 +169,6 @@ service(host) ->
% http://blog.mycroes.nl/2008/08/pairing-itunes-remote-app-with-your-own.html
service(daap) ->
Service = "0000000000000000000000000000000000000011._touch-remote._tcp.local",
- Domain = "nul.local",
Hostname = hostname(),
IP = local_address(),
@@ -198,7 +197,7 @@ service(daap) ->
]}),
A = type({a, [
- {domain, Domain},
+ {domain, Hostname},
{class, ?CLASS_CF},
{data, IP}
]}),

0 comments on commit 51daf7b

Please sign in to comment.