mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-16 00:52:23 +08: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 {
|
||||
return common.Close(
|
||||
&h.listener,
|
||||
h.listener,
|
||||
h.tlsConfig,
|
||||
)
|
||||
}
|
||||
|
|
|
@ -168,7 +168,7 @@ func (h *Inbound) Start() error {
|
|||
|
||||
func (h *Inbound) Close() error {
|
||||
return common.Close(
|
||||
&h.listener,
|
||||
h.listener,
|
||||
h.tlsConfig,
|
||||
common.PtrOrNil(h.service),
|
||||
)
|
||||
|
|
|
@ -179,7 +179,7 @@ func (h *Inbound) Start() error {
|
|||
|
||||
func (h *Inbound) Close() error {
|
||||
return common.Close(
|
||||
&h.listener,
|
||||
h.listener,
|
||||
h.tlsConfig,
|
||||
common.PtrOrNil(h.service),
|
||||
)
|
||||
|
|
|
@ -149,7 +149,7 @@ func (h *Inbound) Start() error {
|
|||
|
||||
func (h *Inbound) Close() error {
|
||||
return common.Close(
|
||||
&h.listener,
|
||||
h.listener,
|
||||
h.tlsConfig,
|
||||
h.transport,
|
||||
)
|
||||
|
|
|
@ -150,7 +150,7 @@ func (h *Inbound) Start() error {
|
|||
|
||||
func (h *Inbound) Close() error {
|
||||
return common.Close(
|
||||
&h.listener,
|
||||
h.listener,
|
||||
h.tlsConfig,
|
||||
common.PtrOrNil(h.server),
|
||||
)
|
||||
|
|
|
@ -129,7 +129,7 @@ func (h *Inbound) Start() error {
|
|||
func (h *Inbound) Close() error {
|
||||
return common.Close(
|
||||
h.service,
|
||||
&h.listener,
|
||||
h.listener,
|
||||
h.tlsConfig,
|
||||
h.transport,
|
||||
)
|
||||
|
|
|
@ -143,7 +143,7 @@ func (h *Inbound) Start() error {
|
|||
func (h *Inbound) Close() error {
|
||||
return common.Close(
|
||||
h.service,
|
||||
&h.listener,
|
||||
h.listener,
|
||||
h.tlsConfig,
|
||||
h.transport,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user