Skip to content

Commit

Permalink
make new slice
Browse files Browse the repository at this point in the history
  • Loading branch information
xxf098 committed Apr 16, 2023
1 parent db120b5 commit cec67c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ func writeShadowrocket(data []byte) ([]byte, error) {
if err != nil {
return nil, err
}
var newLinks []string
newLinks := make([]string, 0, len(links))
for _, link := range links {
if strings.HasPrefix(link, "vmess://") && strings.Contains(link, "&") {
if newLink, err := config.ShadowrocketLinkToVmessLink(link); err == nil {
Expand Down

0 comments on commit cec67c5

Please sign in to comment.