new: ignore utls if no fp is in the url, fix instance not stoped

This commit is contained in:
Hiddify
2024-08-04 21:36:31 +02:00
parent 835f148843
commit 946f0878ff
4 changed files with 310 additions and 316 deletions

View File

@@ -55,10 +55,11 @@ func Start(in *pb.StartRequest) (*pb.CoreInfoResponse, error) {
Log(pb.LogLevel_INFO, pb.LogType_CORE, "Starting")
if CoreState != pb.CoreState_STOPPED {
Log(pb.LogLevel_INFO, pb.LogType_CORE, "Starting0000")
return &pb.CoreInfoResponse{
CoreState: CoreState,
MessageType: pb.MessageType_INSTANCE_NOT_STOPPED,
}, fmt.Errorf("instance not stopped")
Stop()
// return &pb.CoreInfoResponse{
// CoreState: CoreState,
// MessageType: pb.MessageType_INSTANCE_NOT_STOPPED,
// }, fmt.Errorf("instance not stopped")
}
Log(pb.LogLevel_DEBUG, pb.LogType_CORE, "Starting Core")
SetCoreStatus(pb.CoreState_STARTING, pb.MessageType_EMPTY, "")