Skip to content

Commit

Permalink
Fix the name, that's a dumb error.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislea committed Mar 1, 2023
1 parent 9ac9646 commit d5430cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ The resulting output
00:c0:a8:03:01:18:0a:02:03:c0:a8:03:02:18:0a:04:05:c0:a8:03:03
```

is the hexidecimal format needed for Ubiquiti/Unifi and OpenSense routers for
is the hexidecimal format needed for Ubiquiti/Unifi and OPNsense routers for
those classless routes.

The utility also accepts a command line argument `-format` which can have the
following values:

* `ubiquiti`: Outputs format for Ubiquiti / Unifi routers (this is the default)
* `opensense`: Identical to ubiquiti as the format is the same for these routers
* `opnsense`: Identical to ubiquiti as the format is the same for these routers
* `dhcp`: Outputs the format defined in the RFC
* `mikrotik`: Outputs the specific commands needed for Mikrotik routers

Expand Down
2 changes: 1 addition & 1 deletion help.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $ staticrouter /path/to/routes.txt
The program takes a -format option that can be one of:
* ubiquiti: The hex notation used by Ubiquiti / Unifi equipment
* opensense: The same as ubiquiti, as Opensense routers use the same format
* opnsense: The same as ubiquiti, as OPNsense routers use the same format
* dhcp: The literal hexidecimal representation defined in the RFC
* mikrotik: The explicit commands needed for a Mikrotik router
Expand Down
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ func main() {
}

switch format {
case "opnsense":
fallthrough
case "opensense":
fallthrough
case "ubiquiti":
Expand Down

0 comments on commit d5430cb

Please sign in to comment.