mirror of https://github.com/Icinga/icinga2.git
Update 17-language-reference.md
Changed ::1 to 2001:db8:1234::42. RFC 3849 reserves 2001:db8/32 for use in documentation and something that looks like a "real" global IPv6 address is much better in an example than using ::1 (localhost). Using a private IPv4 address and IPv6 localhost in an example make no sense to me.
This commit is contained in:
parent
2e3a1ff0c6
commit
1613a855e7
|
@ -9,7 +9,7 @@ objects using the `object` keyword:
|
||||||
display_name = "host1"
|
display_name = "host1"
|
||||||
|
|
||||||
address = "192.168.0.1"
|
address = "192.168.0.1"
|
||||||
address6 = "::1"
|
address6 = "2001:db8:1234::42"
|
||||||
}
|
}
|
||||||
|
|
||||||
In general you need to write each statement on a new line. Expressions started
|
In general you need to write each statement on a new line. Expressions started
|
||||||
|
@ -22,7 +22,7 @@ them with a semicolon:
|
||||||
object Host "host1.example.org" {
|
object Host "host1.example.org" {
|
||||||
display_name = "host1"
|
display_name = "host1"
|
||||||
|
|
||||||
address = "192.168.0.1"; address6 = "::1"
|
address = "192.168.0.1"; address6 = "2001:db8:1234::42"
|
||||||
}
|
}
|
||||||
|
|
||||||
Each object is uniquely identified by its type (`Host`) and name
|
Each object is uniquely identified by its type (`Host`) and name
|
||||||
|
|
Loading…
Reference in New Issue