diff --git a/web/html/xui/form/inbound.html b/web/html/xui/form/inbound.html
index 9b4c7904..383105ac 100644
--- a/web/html/xui/form/inbound.html
+++ b/web/html/xui/form/inbound.html
@@ -53,7 +53,7 @@
+ v-model="dbInbound._expiryTime" style="width: 250px;">
diff --git a/xray/process.go b/xray/process.go
index e7774ea4..3ce016ed 100644
--- a/xray/process.go
+++ b/xray/process.go
@@ -20,6 +20,7 @@ import (
"github.com/Workiva/go-datastructures/queue"
statsservice "github.com/xtls/xray-core/app/stats/command"
"google.golang.org/grpc"
+ "google.golang.org/grpc/credentials/insecure"
)
var trafficRegex = regexp.MustCompile("(inbound|outbound)>>>([^>]+)>>>traffic>>>(downlink|uplink)")
@@ -243,7 +244,7 @@ func (p *process) GetTraffic(reset bool) ([]*Traffic, []*ClientTraffic, error) {
if p.apiPort == 0 {
return nil, nil, common.NewError("xray api port wrong:", p.apiPort)
}
- conn, err := grpc.Dial(fmt.Sprintf("127.0.0.1:%v", p.apiPort), grpc.WithInsecure())
+ conn, err := grpc.Dial(fmt.Sprintf("127.0.0.1:%v", p.apiPort), grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
return nil, nil, err
}