mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-26 10:31:29 +00:00
Fix close listener
This commit is contained in:
parent
fe610db7ab
commit
8e4327c6cb
|
@ -73,7 +73,7 @@ func (h *Inbound) Start() error {
|
||||||
|
|
||||||
func (h *Inbound) Close() error {
|
func (h *Inbound) Close() error {
|
||||||
return common.Close(
|
return common.Close(
|
||||||
&h.listener,
|
h.listener,
|
||||||
h.tlsConfig,
|
h.tlsConfig,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -168,7 +168,7 @@ func (h *Inbound) Start() error {
|
||||||
|
|
||||||
func (h *Inbound) Close() error {
|
func (h *Inbound) Close() error {
|
||||||
return common.Close(
|
return common.Close(
|
||||||
&h.listener,
|
h.listener,
|
||||||
h.tlsConfig,
|
h.tlsConfig,
|
||||||
common.PtrOrNil(h.service),
|
common.PtrOrNil(h.service),
|
||||||
)
|
)
|
||||||
|
|
|
@ -179,7 +179,7 @@ func (h *Inbound) Start() error {
|
||||||
|
|
||||||
func (h *Inbound) Close() error {
|
func (h *Inbound) Close() error {
|
||||||
return common.Close(
|
return common.Close(
|
||||||
&h.listener,
|
h.listener,
|
||||||
h.tlsConfig,
|
h.tlsConfig,
|
||||||
common.PtrOrNil(h.service),
|
common.PtrOrNil(h.service),
|
||||||
)
|
)
|
||||||
|
|
|
@ -149,7 +149,7 @@ func (h *Inbound) Start() error {
|
||||||
|
|
||||||
func (h *Inbound) Close() error {
|
func (h *Inbound) Close() error {
|
||||||
return common.Close(
|
return common.Close(
|
||||||
&h.listener,
|
h.listener,
|
||||||
h.tlsConfig,
|
h.tlsConfig,
|
||||||
h.transport,
|
h.transport,
|
||||||
)
|
)
|
||||||
|
|
|
@ -150,7 +150,7 @@ func (h *Inbound) Start() error {
|
||||||
|
|
||||||
func (h *Inbound) Close() error {
|
func (h *Inbound) Close() error {
|
||||||
return common.Close(
|
return common.Close(
|
||||||
&h.listener,
|
h.listener,
|
||||||
h.tlsConfig,
|
h.tlsConfig,
|
||||||
common.PtrOrNil(h.server),
|
common.PtrOrNil(h.server),
|
||||||
)
|
)
|
||||||
|
|
|
@ -129,7 +129,7 @@ func (h *Inbound) Start() error {
|
||||||
func (h *Inbound) Close() error {
|
func (h *Inbound) Close() error {
|
||||||
return common.Close(
|
return common.Close(
|
||||||
h.service,
|
h.service,
|
||||||
&h.listener,
|
h.listener,
|
||||||
h.tlsConfig,
|
h.tlsConfig,
|
||||||
h.transport,
|
h.transport,
|
||||||
)
|
)
|
||||||
|
|
|
@ -143,7 +143,7 @@ func (h *Inbound) Start() error {
|
||||||
func (h *Inbound) Close() error {
|
func (h *Inbound) Close() error {
|
||||||
return common.Close(
|
return common.Close(
|
||||||
h.service,
|
h.service,
|
||||||
&h.listener,
|
h.listener,
|
||||||
h.tlsConfig,
|
h.tlsConfig,
|
||||||
h.transport,
|
h.transport,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue