Skip to content

Commit

Permalink
Fix version check
Browse files Browse the repository at this point in the history
  • Loading branch information
tylertreat committed Oct 2, 2015
1 parent fa1f183 commit 9236e22
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions comcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ func main() {
targetproto = flag.String("target-proto", "tcp,udp,icmp", "Target protocol TCP/UDP (e.g. tcp or tcp,udp or icmp)")
dryrun = flag.Bool("dry-run", false, "Specifies whether or not to actually commit the rule changes")
//icmptype = flag.String("icmp-type", "", "icmp message type (e.g. reply or reply,request)") //TODO: Maybe later :3
version = flag.Bool("version", false, "Print Comcast's version")
vers = flag.Bool("version", false, "Print Comcast's version")
)
flag.Parse()

if version {
if *vers {
log.Printf("v%s", version)
return
}

targetIPv4, targetIPv6 := parseAddrs(*targetaddr)
Expand Down

0 comments on commit 9236e22

Please sign in to comment.