From 5e9017720e13b0a0d79c30790a5a4c8f77a322b5 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sat, 24 Sep 2016 23:36:26 +0200 Subject: [PATCH] check nil --- proxy/dokodemo/config.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/proxy/dokodemo/config.go b/proxy/dokodemo/config.go index aa628845..76847eb2 100644 --- a/proxy/dokodemo/config.go +++ b/proxy/dokodemo/config.go @@ -5,5 +5,9 @@ import ( ) func (this *Config) GetPredefinedAddress() v2net.Address { - return this.Address.AsAddress() + addr := this.Address.AsAddress() + if addr == nil { + return nil + } + return addr }