(proto *tailnetproto.IPFields)
| 1878 | } |
| 1879 | |
| 1880 | func ipFieldsFromProto(proto *tailnetproto.IPFields) NetworkEventIPFields { |
| 1881 | if proto == nil { |
| 1882 | return NetworkEventIPFields{} |
| 1883 | } |
| 1884 | return NetworkEventIPFields{ |
| 1885 | Version: proto.Version, |
| 1886 | Class: strings.ToLower(proto.Class.String()), |
| 1887 | } |
| 1888 | } |
| 1889 | |
| 1890 | type NetworkEventP2PEndpoint struct { |
| 1891 | Hash string `json:"hash"` |
no test coverage detected