format code

pull/27/head
V2Ray 2015-09-21 19:57:30 +02:00
parent 0ce10e1f88
commit 26b6c06c9e
2 changed files with 6 additions and 6 deletions

View File

@ -22,7 +22,7 @@ func (u *VMessUser) ToUser() (user.User, error) {
}, err }, err
} }
// VMessInboundConfig is // VMessInboundConfig is
type VMessInboundConfig struct { type VMessInboundConfig struct {
AllowedClients []VMessUser `json:"clients"` AllowedClients []VMessUser `json:"clients"`
} }

View File

@ -259,9 +259,9 @@ type VMessResponse [4]byte
// NewVMessResponse creates a VMessResponse from a given VMessRequest. // NewVMessResponse creates a VMessResponse from a given VMessRequest.
func NewVMessResponse(request *VMessRequest) *VMessResponse { func NewVMessResponse(request *VMessRequest) *VMessResponse {
return &VMessResponse{ return &VMessResponse{
request.ResponseHeader[0], request.ResponseHeader[0],
request.ResponseHeader[1], request.ResponseHeader[1],
request.ResponseHeader[2], request.ResponseHeader[2],
request.ResponseHeader[3]} request.ResponseHeader[3]}
} }