Support unix domain sockets in redis clients, too.

This commit is contained in:
Sascha L. Teichmann
2017-03-05 14:38:30 +01:00
parent ba2dd15280
commit e68e762322
4 changed files with 30 additions and 5 deletions

View File

@ -8,6 +8,7 @@ import (
"flag"
"fmt"
"log"
"strings"
"bitbucket.org/s_l_teichmann/mtsatellite/common"
)
@ -71,7 +72,12 @@ func main() {
if !skipBaseLevel {
td := common.Clamp32f(float32(transparentDim/100.0), 0.0, 1.0)
address := fmt.Sprintf("%s:%d", host, port)
var address string
if strings.ContainsRune(host, '/') {
address = host
} else {
address = fmt.Sprintf("%s:%d", host, port)
}
if err := createBaseLevel(
address,
xMin, yMin, zMin, xMax, yMax, zMax,