@@ -104,7 +104,7 @@ func (w *GW) Reaches(hostportOrIPPortCsvStr string) bool {
104104}
105105
106106// ProxyNoGateway is a Router that routes nothing.
107- var ProxyNoGateway = GWNoVia {GW : GW {nov4 : true , nov6 : true }}
107+ var ProxyNoGateway = & GWNoVia {GW : GW {nov4 : true , nov6 : true }}
108108
109109// ProtoAgnostic is a proxy that does not care about protocol changes.
110110type ProtoAgnostic struct {}
@@ -175,17 +175,17 @@ type NoProxy struct {
175175 GWNoVia
176176}
177177
178- func (NoProxy ) Handle () uint64 { return core .Nobody }
179- func (NoProxy ) DialerHandle () uint64 { return core .Nobody }
180- func (NoProxy ) ID () string { return "" }
181- func (NoProxy ) Type () string { return "" }
182- func (NoProxy ) Router () x.Router { return nil }
183- func (NoProxy ) Reaches (string ) bool { return false }
184- func (NoProxy ) Self (string ) bool { return false }
185- func (NoProxy ) Dial (string , string ) (protect.Conn , error ) { return nil , errNop }
186- func (NoProxy ) DialBind (string , string , string ) (protect.Conn , error ) { return nil , errNop }
187- func (NoProxy ) Dialer () protect.RDialer { return nil }
188- func (NoProxy ) Status () int32 { return 0 }
189- func (NoProxy ) GetAddr () string { return "" }
190- func (NoProxy ) Stop () error { return nil }
191- func (NoProxy ) Client () x.Client { return nil }
178+ func (* NoProxy ) Handle () uint64 { return core .Nobody }
179+ func (* NoProxy ) DialerHandle () uint64 { return core .Nobody }
180+ func (* NoProxy ) ID () string { return "" }
181+ func (* NoProxy ) Type () string { return "" }
182+ func (* NoProxy ) Router () x.Router { return nil }
183+ func (* NoProxy ) Reaches (string ) bool { return false }
184+ func (* NoProxy ) Self (string ) bool { return false }
185+ func (* NoProxy ) Dial (string , string ) (protect.Conn , error ) { return nil , errNop }
186+ func (* NoProxy ) DialBind (string , string , string ) (protect.Conn , error ) { return nil , errNop }
187+ func (* NoProxy ) Dialer () protect.RDialer { return nil }
188+ func (* NoProxy ) Status () int32 { return 0 }
189+ func (* NoProxy ) GetAddr () string { return "" }
190+ func (* NoProxy ) Stop () error { return nil }
191+ func (* NoProxy ) Client () x.Client { return nil }
0 commit comments