Skip to content

Commit

Permalink
fix(example): raw and gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemeowx2 committed Feb 7, 2022
1 parent 24723c3 commit 00f3222
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
12 changes: 10 additions & 2 deletions examples/gateway.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# raw server can be a gateway of a Switch
# raw net can be a gateway of a Switch

server:
net:
gateway:
type: raw
device: eth0
Expand All @@ -10,3 +10,11 @@ server:
ethernet_addr: 70:85:C2:71:43:1D
# you can change net to any protocol that support UDP.
net: local
# any device in `ip_addr` subnet can use net above as a real net.
forward: true
server:
# a echo server to keep rabbit-digger-pro running
echo:
type: echo
bind: 0.0.0.0:12345
net: gateway
1 change: 1 addition & 0 deletions examples/raw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ net:
resolve_raw:
type: resolve
net: raw
resolve_net: local
ipv6: false
server:
mixed:
Expand Down
2 changes: 1 addition & 1 deletion rabbit-digger

0 comments on commit 00f3222

Please sign in to comment.