Change hostname to esrom.lan.

This commit is contained in:
Pim Kunis 2019-08-24 17:45:27 +02:00
parent 66291ac548
commit aa0624b43c
3 changed files with 3 additions and 3 deletions

View file

@ -33,7 +33,7 @@ node_name = "esrom"
config :nerves_init_gadget, config :nerves_init_gadget,
ifname: "eth0", ifname: "eth0",
address_method: :dhcp, address_method: :dhcp,
mdns_domain: "nerves.local", mdns_domain: "esrom.lan",
node_name: node_name, node_name: node_name,
node_host: :mdns_domain node_host: :mdns_domain

View file

@ -23,7 +23,7 @@ defmodule Firmware.Application do
def children(:host) do def children(:host) do
{:ok, _} = Node.start(:"host@0.0.0.0") {:ok, _} = Node.start(:"host@0.0.0.0")
Node.set_cookie(:testcookie) Node.set_cookie(:testcookie)
true = Node.connect(:"esrom@nerves.local") true = Node.connect(:"esrom@esrom.lan")
[] []
end end

View file

@ -63,7 +63,7 @@ defmodule Morse.Worker do
case Mix.Nerves.Utils.mix_target() do case Mix.Nerves.Utils.mix_target() do
:host -> :host ->
def toggle_lamp(state) do def toggle_lamp(state) do
:rpc.call(:"esrom@nerves.local", Morse.Worker, :toggle_lamp, [state]) :rpc.call(:"esrom@esrom.lan", Morse.Worker, :toggle_lamp, [state])
end end
_ -> _ ->