Version 1.3.1: [FIX] Allow disabling header

This commit is contained in:
2021-02-19 23:33:12 +00:00
parent 9d03c6f567
commit e1953f339d
2 changed files with 1 additions and 3 deletions

View File

@@ -2,7 +2,6 @@ package main
import (
"fmt"
"os"
"strings"
)
@@ -26,8 +25,6 @@ type IPAddressInfo struct {
func printIPInfo(input string, wantPrefixes bool) {
var IPInfo IPAddressInfo = getIPInfo(input)
fmt.Printf("%+v\n", IPInfo)
os.Exit(200)
var location string = IPInfo.Country + "/" + IPInfo.RegionName + "/" + IPInfo.City
var bgpAS string = strings.Fields(IPInfo.AS)[0]
fmt.Println("IP Address: ", IPInfo.IPAddress)

View File

@@ -17,6 +17,7 @@ func main() {
flag.Usage = func() {
fmt.Printf("Usage of iPilot: \n")
fmt.Printf("Example: iPilot -b=false -i=me -p \n")
fmt.Printf(" -b bool enable/disable header (default true)\n")
fmt.Printf(" -h bool view help\n")
fmt.Printf(" -i string IP address or domain\n")