From 295789efed6ced501ee2eaaf9163f788bb6ba2b4 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 2 Jun 2019 15:48:39 -0700 Subject: [PATCH] add a field for IPv6 Signed-off-by: Jeff Carr --- config.pb.go | 43 ++++++++++++++++++++++++++----------------- config.proto | 1 + 2 files changed, 27 insertions(+), 17 deletions(-) diff --git a/config.pb.go b/config.pb.go index 2a91425..00b12f7 100644 --- a/config.pb.go +++ b/config.pb.go @@ -33,6 +33,7 @@ type Config struct { Errors int32 `protobuf:"varint,10,opt,name=errors,proto3" json:"errors,omitempty"` Crashes int32 `protobuf:"varint,11,opt,name=crashes,proto3" json:"crashes,omitempty"` Crash string `protobuf:"bytes,12,opt,name=crash,proto3" json:"crash,omitempty"` + IPv6 string `protobuf:"bytes,13,opt,name=IPv6,proto3" json:"IPv6,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -147,6 +148,13 @@ func (m *Config) GetCrash() string { return "" } +func (m *Config) GetIPv6() string { + if m != nil { + return m.IPv6 + } + return "" +} + func init() { proto.RegisterType((*Config)(nil), "witProtobuf.Config") } @@ -154,21 +162,22 @@ func init() { func init() { proto.RegisterFile("config.proto", fileDescriptor_3eaf2c85e69e9ea4) } var fileDescriptor_3eaf2c85e69e9ea4 = []byte{ - // 249 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x90, 0x41, 0x6a, 0xc3, 0x30, - 0x10, 0x45, 0x71, 0x12, 0x3b, 0xce, 0x38, 0xdd, 0x88, 0x50, 0x86, 0x2c, 0x8a, 0xe9, 0xca, 0x2b, - 0x53, 0xda, 0x13, 0x94, 0xd2, 0x7d, 0x51, 0xe9, 0x01, 0x6c, 0x47, 0xb6, 0x04, 0xa9, 0x55, 0x24, - 0x99, 0x5c, 0xb2, 0x87, 0x0a, 0x9a, 0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 0x00, 0x00, 0xff, - 0xff, 0x63, 0x53, 0x95, 0xbc, 0x81, 0x01, 0x00, 0x00, + // 261 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x90, 0x4d, 0x6a, 0xc3, 0x30, + 0x10, 0x85, 0x71, 0x7e, 0x1c, 0x67, 0x9c, 0x6c, 0x44, 0x28, 0x43, 0x16, 0xc5, 0x74, 0xe5, 0x95, + 0x29, 0x2d, 0x74, 0x5f, 0x4a, 0x17, 0xdd, 0x05, 0x95, 0x1e, 0xc0, 0x76, 0x64, 0x4b, 0x90, 0x5a, + 0x45, 0x92, 0x9b, 0xeb, 0xf6, 0x28, 0x45, 0x33, 0x4e, 0xc8, 0xee, 0x7d, 0xf3, 0xf3, 0x98, 0x37, + 0xb0, 0x69, 0xed, 0xd0, 0x99, 0xbe, 0xfa, 0x71, 0x36, 0x58, 0x91, 0x9f, 0x4d, 0x38, 0x44, 0xd5, + 0x8c, 0xdd, 0x7e, 0x5b, 0xb7, 0xad, 0x1d, 0x87, 0xc0, 0xbd, 0x87, 0xbf, 0x19, 0xa4, 0x6f, 0x34, + 0x2c, 0x04, 0x2c, 0xbe, 0x3e, 0xdf, 0x25, 0x26, 0x45, 0x52, 0xae, 0x25, 0x69, 0xb1, 0x83, 0xe5, + 0xd9, 0x1c, 0x83, 0xc6, 0x59, 0x91, 0x94, 0x4b, 0xc9, 0x20, 0xee, 0x20, 0xd5, 0xca, 0xf4, 0x3a, + 0xe0, 0x9c, 0xca, 0x13, 0x89, 0x3d, 0x64, 0xda, 0xfa, 0x30, 0xd4, 0xdf, 0x0a, 0x17, 0xe4, 0x72, + 0xe5, 0xe8, 0x74, 0x54, 0xcd, 0xd8, 0xe3, 0xb2, 0x48, 0xca, 0x4c, 0x32, 0x88, 0x7b, 0x00, 0x12, + 0xa1, 0x6e, 0x4e, 0x0a, 0x53, 0x6a, 0xdd, 0x54, 0xa2, 0x63, 0x67, 0x4e, 0x8a, 0x1c, 0x57, 0xec, + 0x78, 0x61, 0xf1, 0x08, 0xd9, 0x94, 0xc5, 0x63, 0x56, 0xcc, 0xcb, 0xfc, 0x69, 0x57, 0xdd, 0x24, + 0xad, 0x5e, 0xb9, 0x29, 0xaf, 0x53, 0x02, 0x61, 0x45, 0x4a, 0x39, 0x5c, 0xd3, 0xe1, 0x17, 0x8c, + 0x89, 0x94, 0x73, 0xd6, 0x79, 0x04, 0x4e, 0xc4, 0x44, 0x1b, 0xae, 0xf6, 0x5a, 0x79, 0xcc, 0xa7, + 0x0d, 0xc6, 0x98, 0x87, 0x24, 0x6e, 0xe8, 0x2c, 0x86, 0xf8, 0xc3, 0x8f, 0xc3, 0xef, 0x0b, 0x6e, + 0xf9, 0x87, 0x51, 0x37, 0x29, 0x7d, 0xfa, 0xf9, 0x3f, 0x00, 0x00, 0xff, 0xff, 0x8b, 0xaf, 0xa5, + 0x04, 0x95, 0x01, 0x00, 0x00, } diff --git a/config.proto b/config.proto index 9bab966..e22b05e 100644 --- a/config.proto +++ b/config.proto @@ -16,4 +16,5 @@ message Config { int32 errors = 10; int32 crashes = 11; string crash = 12; + string IPv6 = 13; }