Add command to connect an address

This commit is contained in:
世界 committed 2023-03-18 20:27:38 +08:00
1 parent c7f89ad88e
commit e5f3bb6344
6 files changed
+204 -50

No files matched your search

+1
View File
@@ -10,6 +10,7 @@ import (
type ClashServer interface {
Service
PreStarter
Mode() string
StoreSelected() bool
CacheFile() ClashCacheFile
+15
View File
@@ -0,0 +1,15 @@
package adapter
type PreStarter interface {
PreStart() error
}
func PreStart(starter any) error {
if preService, ok := starter.(PreStarter); ok {
err := preService.PreStart()
if err != nil {
return err
}
}
return nil
}