platform: Add group interface

This commit is contained in:
世界
2023-07-02 16:45:30 +08:00
parent 5ad0ea2b5a
commit 9c8565cf21
25 changed files with 576 additions and 95 deletions

View File

@@ -9,8 +9,8 @@ import (
"github.com/sagernet/sing-box/common/dialer/conntrack"
)
func ClientCloseConnections(sharedDirectory string) error {
conn, err := clientConnect(sharedDirectory)
func (c *CommandClient) CloseConnections() error {
conn, err := c.directConnect()
if err != nil {
return err
}