Skip to content

Commit

Permalink
v0.5.0 with ALPN h3
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza0 committed Apr 5, 2023
1 parent e0a64a8 commit 02a4f0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions web/assets/js/model/xray.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ const UTLS_FINGERPRINT = {
};

const ALPN_OPTION = {
H3: "h3",
H2: "h2",
HTTP1: "http/1.1",
};
Expand Down
3 changes: 2 additions & 1 deletion web/controller/sub.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package controller

import (
"encoding/base64"
"strings"
"x-ui/web/service"

"github.com/gin-gonic/gin"
Expand All @@ -27,7 +28,7 @@ func (a *SUBController) initRouter(g *gin.RouterGroup) {

func (a *SUBController) subs(c *gin.Context) {
subId := c.Param("subid")
host := c.Request.URL.Hostname()
host := strings.Split(c.Request.Host, ":")[0]
subs, err := a.subService.GetSubs(subId, host)
if err != nil {
c.String(400, "Error!")
Expand Down

0 comments on commit 02a4f0c

Please sign in to comment.