Skip to content

[Feature] Make engine.Start and engine.Stop return error instead of log.Fatalf #550

Description

@nange

Description

这样第三方在调用相关接口时,可以自主的决定后续该如何处理,而不是直接进程退出。
对应到tun2socks项目,可以在main.go里面判断error,然后再log.Fatalf

Is this feature related to a specific bug?

No

Do you have a specific solution in mind?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions