2023-01-23 18:54:21 +07:00
|
|
|
//go:build linux
|
|
|
|
|
|
|
|
/*
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2023-02-18 17:27:28 +07:00
|
|
|
* Copyright (c) 2022-2023, v2rayA Organization <team@v2raya.org>
|
2023-01-23 18:54:21 +07:00
|
|
|
*/
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2023-01-27 01:10:27 +07:00
|
|
|
"github.com/json-iterator/go/extra"
|
|
|
|
"github.com/v2rayA/dae/cmd"
|
|
|
|
"net/http"
|
2023-01-23 18:54:21 +07:00
|
|
|
"os"
|
2023-01-27 01:10:27 +07:00
|
|
|
"time"
|
2023-01-23 18:54:21 +07:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2023-01-27 01:10:27 +07:00
|
|
|
extra.RegisterFuzzyDecoders()
|
|
|
|
|
|
|
|
http.DefaultClient.Timeout = 30 * time.Second
|
|
|
|
if err := cmd.Execute(); err != nil {
|
|
|
|
os.Exit(1)
|
2023-01-23 18:54:21 +07:00
|
|
|
}
|
2023-01-27 01:10:27 +07:00
|
|
|
os.Exit(0)
|
2023-01-23 18:54:21 +07:00
|
|
|
}
|