mirror of
https://github.com/luscis/openlan.git
synced 2025-12-24 11:10:54 +08:00
$ openlan net --name america output add \
--remote <remote> \
--protocol <tcp> \
--secret <user>:<user-pass> \
--crypt :<shared-key>
17 lines
456 B
Go
17 lines
456 B
Go
package schema
|
|
|
|
type Output struct {
|
|
Network string `json:"network"`
|
|
Protocol string `json:"protocol"`
|
|
Remote string `json:"remote"`
|
|
DstPort int `json:"dstPort"`
|
|
Segment int `json:"segment"`
|
|
Secret string `json:"secret"`
|
|
Crypt string `json:"crypt"`
|
|
Device string `json:"device"`
|
|
RxBytes uint64 `json:"rxBytes"`
|
|
TxBytes uint64 `json:"txBytes"`
|
|
ErrPkt uint64 `json:"errors"`
|
|
AliveTime int64 `json:"aliveTime"`
|
|
}
|