瀏覽代碼

added server password support as command line arguement (#13)

master
Scott Register Tim Cooper 8 年之前
父節點
當前提交
c15344203a
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      cmd/barnard/main.go

+ 2
- 0
cmd/barnard/main.go 查看文件

@@ -16,6 +16,7 @@ func main() {
// Command line flags
server := flag.String("server", "localhost:64738", "the server to connect to")
username := flag.String("username", "", "the username of the client")
password := flag.String("password", "", "the password of the server")
insecure := flag.Bool("insecure", false, "skip server certificate verification")
certificate := flag.String("certificate", "", "PEM encoded certificate and private key")

@@ -28,6 +29,7 @@ func main() {
}

b.Config.Username = *username
b.Config.Password = *password

if *insecure {
b.TLSConfig.InsecureSkipVerify = true


Loading…
取消
儲存