Skip to content

Instantly share code, notes, and snippets.

View yurkeen's full-sized avatar

Yury Evtikhov yurkeen

View GitHub Profile
@yurkeen
yurkeen / consul-dns-issue-repro.txt
Created July 1, 2020 01:39
Simple Consul Cluster
# Added extra aliases to bind multiple Consul agents
$ ifconfig lo0
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.101 netmask 0xff000000
inet 127.0.0.102 netmask 0xff000000
inet 127.0.0.103 netmask 0xff000000
func openbrowser(url string) {
var err error
switch runtime.GOOS {
case "linux":
err = exec.Command("xdg-open", url).Start()
case "windows":
err = exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start()
case "darwin":
err = exec.Command("open", url).Start()