Skip to content

Commit

Permalink
added flag for insecure tls certs
Browse files Browse the repository at this point in the history
  • Loading branch information
kylescottmcgill committed Oct 14, 2015
1 parent afb3e0b commit 170d60f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/gowsdl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ var Name string
var vers = flag.Bool("v", false, "Shows gowsdl version")
var pkg = flag.String("p", "myservice", "Package under which code will be generated")
var outFile = flag.String("o", "myservice.go", "File where the generated code will be saved")
var insecure = flag.Bool("i", false, "Skips TLS Verification")

func init() {
log.SetFlags(0)
Expand Down Expand Up @@ -99,7 +100,7 @@ func main() {
}

// load wsdl
gowsdl, err := gen.NewGoWSDL(wsdlPath, *pkg, false)
gowsdl, err := gen.NewGoWSDL(wsdlPath, *pkg, *insecure)
if err != nil {
log.Fatalln(err)
}
Expand Down

0 comments on commit 170d60f

Please sign in to comment.