forked from External/grumble
Better defaults handling + better Windows compat.
This commit is contained in:
parent
2cf093160b
commit
fea87b0c13
2 changed files with 47 additions and 31 deletions
4
ctl.go
4
ctl.go
|
|
@ -6,8 +6,6 @@ package main
|
|||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"rpc"
|
||||
"strconv"
|
||||
)
|
||||
|
|
@ -40,7 +38,7 @@ func GrumbleCtl(args []string) {
|
|||
|
||||
sid, _ := strconv.Atoi64(args[1])
|
||||
|
||||
client, err := rpc.Dial("unix", filepath.Join(os.Getenv("HOME"), ".grumble", "ctl"))
|
||||
client, err := rpc.Dial(*ctlnet, *ctladdr)
|
||||
if err != nil {
|
||||
log.Fatalf("Could not connect to control socket: %v", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue