# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           golang 1.0

go.setup            github.com/v2fly/v2ray-core 5.41.0 v
revision            0
name                v2ray
categories          net security
license             MIT
maintainers         {@casouri gmail.com:casouri} {i0ntempest @i0ntempest} openmaintainer
description         A proxy server for bypassing network restrictions

long_description    V2Ray supports many protocols, including Socks, HTTP, Shadowsocks, \
                    VMess, and more. And each protocol may have its own transport, such as TCP, \
                    mKCP, WebSocket, etc. Better yet, V2Ray has built in obfuscation \
                    to hide traffic in TLS, and can run in parallel with web servers.

homepage            https://www.v2fly.org

checksums           ${distname}${extract.suffix} \
                        rmd160  bd9e12e85b62a3c74d88224ec352e0ef904914c8 \
                        sha256  c67caa2d73f35a9562ecaeb5184733c943c9dafb47e8f1cfeacb892a9247e9b5 \
                        size    1109397

go.vendors          nhooyr.io/websocket \
                        repo    github.com/nhooyr/websocket-old \
                        lock    v1.8.17 \
                        rmd160  761c05b3242f870d7d8c2c454a768250f84a504b \
                        sha256  da77c7662f4eca2b9762d489444b2a0aa593377a48cb0a29086c176ae26f19d0 \
                        size    61351 \
                    lukechampine.com/blake3 \
                        repo    github.com/lukechampine/blake3 \
                        lock    v1.4.1 \
                        rmd160  8122fe2cc054d6ed191ae4cf2a0ed4dc3c38e14f \
                        sha256  fe369a3d322671b7cb9a687eb5571f7f1a4e96bc33da2282860f160a80e89199 \
                        size    40547 \
                    h12.io/socks \
                        repo    github.com/h12w/socks \
                        lock    v1.0.3 \
                        rmd160  291bf328a15dedff3a621345f117bd4ddf573b1e \
                        sha256  389ce4196b8a33eef5ec0f578ab1068d4202a8edfa1b9d244445c770dee97c2e \
                        size    14650 \
                    gvisor.dev/gvisor \
                        repo    github.com/google/gvisor \
                        lock    b8a429915ff1 \
                        rmd160  981fb5a94260cbc9253e3e87c13a5772fe46453e \
                        sha256  86322d62145a49f8a9b4eb21ad6b64276b55c925413d9b70328173b3475113f8 \
                        size    12582180 \
                    gopkg.in/yaml.v3 \
                        lock    v3.0.1 \
                        rmd160  e85ac1368fb7f9ef945b7fd7bd608a1f0d261c12 \
                        sha256  f3ea6be3f405ec25f8799773355aba54f8831d11f5315a01155bdc69b92eca7b \
                        size    91208 \
                    gopkg.in/yaml.v2 \
                        lock    v2.4.0 \
                        rmd160  66e9feb7944b3804efa63155ed9b618717b8955c \
                        sha256  72812077e7f20278003de6ab0d85053d89131d64c443f39115a022114fd032b6 \
                        size    73231 \
                    gopkg.in/check.v1 \
                        lock    10cb98267c6c \
                        rmd160  465dcadb97762c84da6fb5f6d8352abe10445817 \
                        sha256  98ec7bd0dc7d4bcee7dcafe02efab29f14dc392f43b227e517beef064e9b6369 \
                        size    32368 \
                    google.golang.org/protobuf \
                        repo    github.com/protocolbuffers/protobuf-go \
                        lock    v1.36.10 \
                        rmd160  055193b8aade0825127ae3d68f12c4946e2d2a6d \
                        sha256  00fe327a64bc52c1ee4dec414da6cbe60e242c528d03021e4308f05be4d8a972 \
                        size    1815948 \
                    google.golang.org/grpc \
                        repo    github.com/grpc/grpc-go \
                        lock    v1.76.0 \
                        rmd160  2c76f3b7293c3bd2a89b5207137c8fbb9e8495d2 \
                        sha256  efcdd2d0d51fad05cc5f4fe4b62fe5ce028a16e23cba118bc87389c0e008a8ca \
                        size    2529197 \
                    google.golang.org/genproto \
                        repo    github.com/googleapis/go-genproto \
                        lock    a7a43d27e69b \
                        rmd160  5cd3ec602a6ab368f0397c5ffa94aeb545481189 \
                        sha256  72861f2a1cdb00d449ea2d04a1207e43e4390f528c85bf7a7cb63845554e141d \
                        size    5912660 \
                    gonum.org/v1/gonum \
                        repo    github.com/gonum/gonum \
                        lock    v0.16.0 \
                        rmd160  fe10ff918c2e70bf7117c595e0c4999ffbee7cea \
                        sha256  806051c0d7e13cdb7dcfd460b5027f6acf23c0b5ecda9635ed7b4a5a1ed3e359 \
                        size    3476836 \
                    golang.org/x/tools \
                        lock    v0.37.0 \
                        rmd160  c56cce1e2f3b154fc1a89270f1d78924fd29eb20 \
                        sha256  c51b2944924a55dd569245f095ff50a31a0afcbf37c12b08af797f441294f6d4 \
                        size    8241522 \
                    golang.org/x/time \
                        lock    v0.5.0 \
                        rmd160  736ffd8142f0eac7fd5fdde68d9a2adb67a0a7d2 \
                        sha256  b74986a49a769e26a05be1518d800182806135e22819ef98017d38f8e1e6b69c \
                        size    12221 \
                    golang.org/x/text \
                        lock    v0.30.0 \
                        rmd160  ac0fe31ef29a96cedf759c840a04058dce249d4f \
                        sha256  a8811d6ffc939356c77a5caa8b577f9700d9861bce7814977da7b94456ac997a \
                        size    8970063 \
                    golang.org/x/sys \
                        lock    v0.37.0 \
                        rmd160  ff25f6061e94810a81b7f7b180a2205b869d90f4 \
                        sha256  4bc9d9f2de7bb6b4473a544903108648f130c3ce68020464d8665e4aba8e5653 \
                        size    1531626 \
                    golang.org/x/sync \
                        lock    v0.17.0 \
                        rmd160  a00dd5b2e9d83097a0edf5cfd66eed7531542c28 \
                        sha256  9c955ca0cbae984640296cc3c0b01af9ee5a0ad21704e8022436db147b3db955 \
                        size    18199 \
                    golang.org/x/net \
                        lock    v0.46.0 \
                        rmd160  6e83127f8bb45d9c80ec68c516324d75109db1bb \
                        sha256  01cbc01b222ed4f1acd7d63e4f13ff8f3f5527275af9c5ccd608ea040e8d3b81 \
                        size    1518942 \
                    golang.org/x/mod \
                        lock    v0.28.0 \
                        rmd160  757e56a9e4d6682e208fdeb8c7ac11a7039b4aad \
                        sha256  9976c2c3c3a9a32846f319564cb2c01eb40191786ff5a4b6b9d54496ab0aee8d \
                        size    126584 \
                    golang.org/x/exp \
                        lock    9bf2ced13842 \
                        rmd160  b0d83153c3289a55ceaaa98874c7f8666936ebca \
                        sha256  630dccd7220d1bd04b5412cd02077e2784a58467e67394e9dd36787c8d5d5edd \
                        size    1744202 \
                    golang.org/x/crypto \
                        lock    v0.43.0 \
                        rmd160  22580511abe40d45b37d949254b760100c731752 \
                        sha256  834091eadbcb351649f5940b107c7978507907b55e0cb29ba95824b85d0dcc50 \
                        size    2161856 \
                    go4.org/netipx \
                        repo    github.com/go4org/netipx \
                        lock    f1b76eb4bb35 \
                        rmd160  2cbe8f3f12581260e7b7bcc28171383b2210b61c \
                        sha256  24709ddf60077f7b0ae2c721b9d230476c3c6c248afbac32b2d0e46e53280195 \
                        size    22716 \
                    go.uber.org/mock \
                        repo    github.com/uber-go/mock \
                        lock    v0.5.2 \
                        rmd160  2d8013c335926239dfeb070e396f6658ab455299 \
                        sha256  6dd6f2aa4342ce46ac928174c59cac49c9b2a86278682c142e18b7c619fcc3e9 \
                        size    113994 \
                    go.uber.org/goleak \
                        repo    github.com/uber-go/goleak \
                        lock    v1.2.1 \
                        rmd160  abf101a7c570fb44f423923004dd10adc2449b96 \
                        sha256  3310d96cf708a5c24a6beed96662e1f6c495ab1a5af07203dd28b20ff87e8ef5 \
                        size    15418 \
                    go.starlark.net \
                        repo    github.com/google/starlark-go \
                        lock    9532f5667272 \
                        rmd160  1f4e468effce7c9a95a64f4a430c4756a9868b72 \
                        sha256  e0c0ba0164c19b54c37ed9368880a139af087e2b1c8ee1bea9c45d9ca6a43cdf \
                        size    275253 \
                    github.com/xtaci/smux \
                        lock    v1.5.24 \
                        rmd160  c1473ad7aeb35491772a031439b03710fe2f3061 \
                        sha256  54e4c220a077d6849e812f1e256a776e74f6dacb60d42e7ea484b42c92ed70b1 \
                        size    138491 \
                    github.com/xiaokangwang/VLite \
                        lock    cff95160a432 \
                        rmd160  f290d00ac323a89a45f4c7a7a508661eef03cc90 \
                        sha256  7fffd2b689126a73d054d87044a853afd32f6e0ebe42662da9ff8794966c4253 \
                        size    186973 \
                    github.com/vincent-petithory/dataurl \
                        lock    v1.0.0 \
                        rmd160  7ca9265612cfb9e6dde563d74e06fca9b188a3e2 \
                        sha256  4aae6cb73f46068289c415beaf5529c0212cf12b8cd7d3776548733eccb35f6a \
                        size    11594 \
                    github.com/v2fly/struc \
                        lock    8e8fa1badfd6 \
                        rmd160  c48fe9559f9ad1c6ffe8f0a0bed2cbe267f4dadb \
                        sha256  f3b8802b26a07dc3a665b3f2c4148d26b4ba079a7440d348920e59bc7dda9c42 \
                        size    16196 \
                    github.com/v2fly/ss-bloomring \
                        lock    28617310f63e \
                        rmd160  761b61e00dc364aeb34f0291bea63c29d4d79d25 \
                        sha256  37bd8667b8f62fc979f7956e3e5b4ac3b294b590654cde51c386a0374b356d46 \
                        size    5707 \
                    github.com/v2fly/hysteria \
                        lock    b0a0747ac7ab \
                        rmd160  0b207bbaf73ef4bc7617b2c2c94f36dc0ab72776 \
                        sha256  f60cbd51424bbaa4792bc409e9bf6a590f4e413cce51db38f0b9edd3cbef8c2a \
                        size    4463752 \
                    github.com/v2fly/VSign \
                        lock    e2adc24bf848 \
                        rmd160  d3a77e34e06c1c47945a2c52c062eebf554765c5 \
                        sha256  9dfe839716da561fde853aec6a04352f8f487e29321bb156a02ddef95fdec43a \
                        size    9339 \
                    github.com/v2fly/BrowserBridge \
                        lock    0570fc1d7d08 \
                        rmd160  9c0aee77e864f9ecc85447971f9a33285ce03235 \
                        sha256  8669339da1b08918734f0ecc73878f5ce7dff1413a8827ede3b0a63653d4bc5c \
                        size    370373 \
                    github.com/ugorji/go/codec \
                        lock    v1.1.7 \
                        rmd160  789f04e969a7d4b0f013c66c469d190425d88c58 \
                        sha256  fd2c500556c6be3d27d962448f91ae49fcc5caeece983f2c56ddc138615cbc5b \
                        size    293735 \
                    github.com/ugorji/go \
                        lock    v1.1.7 \
                        rmd160  a30b19f3dbc6ed0555183380f7a3a2e0d90033d7 \
                        sha256  7e7d86a2f01eac594c05e807fa77005c92122bcec661d9128dee4f6510449714 \
                        size    293743 \
                    github.com/stretchr/testify \
                        lock    v1.11.1 \
                        rmd160  d6dec631a506398b8b731a0476b9e44c206243ac \
                        sha256  759279b90772bfc79db1620874f45eb008aceab35b14f007cb4ab8316a2398db \
                        size    116867 \
                    github.com/stretchr/objx \
                        lock    v0.5.2 \
                        rmd160  96ffcde8897243df89c8da1084cb84c90eb72676 \
                        sha256  39661f2a3eb998c52776126d166556a804fa18bf7e2d7e4dc73e20cd25d3145c \
                        size    33242 \
                    github.com/seiflotfy/cuckoofilter \
                        lock    e3b120b3f5fb \
                        rmd160  7699af91e2a4961173755a54d119eb62d39966e9 \
                        sha256  ad6854c2d84a3c249f27f8c7636783db31e09fa0643a350f692dacefeb17d089 \
                        size    6831 \
                    github.com/secure-io/siv-go \
                        lock    5ff40651e2c4 \
                        rmd160  5523c3046f151adc3d53b5e37f4f877a3d2d2705 \
                        sha256  0bedda3b9f421e0500d855f405c9cf1f1cb6ab04930bccfb8907740fea377fa3 \
                        size    13829 \
                    github.com/rs/cors \
                        lock    v1.7.0 \
                        rmd160  3c1f6a7888923f7bab923b27d4f2bfd45cfbe4a1 \
                        sha256  843f0dd8bc44f775b907ab27de9600e0a18e48ac6758ae751fbb09340871e901 \
                        size    12154 \
                    github.com/rogpeppe/go-internal \
                        lock    v1.12.0 \
                        rmd160  ed748fa7713fcb28a8b0dd08c130eb4e61bf2a74 \
                        sha256  4e8a59559866e8e6a75f92ec826e6374c8d866da21ff8bb62b3eab3092214513 \
                        size    116901 \
                    github.com/riobard/go-bloom \
                        lock    cdc8013cb5b3 \
                        rmd160  516e59eed4200c50f09b4a4e32751cd59c37b02e \
                        sha256  27c2479459dd154b496a019d595bd2863d47b98f9d9c9e9b7c97125636685987 \
                        size    5502 \
                    github.com/refraction-networking/utls \
                        lock    v1.8.1 \
                        rmd160  2804417a6926eed2965a3208f42031c696b479d5 \
                        sha256  d146df5471c7e3040c0dc319e54c30fa515d71a42e664dc7c774033f3c7bd6b6 \
                        size    706536 \
                    github.com/quic-go/quic-go \
                        lock    v0.55.0 \
                        rmd160  a2ab2765fe2c3df0495df11423f913599ccd4538 \
                        sha256  96c7d1b04917ef295dd4bd963b59588aca325be422ab2dc0a95ed9a3ee19fc26 \
                        size    641772 \
                    github.com/quic-go/qpack \
                        lock    v0.5.1 \
                        rmd160  d97bbb1aa6a532e9641ca066f6bc1f4b69b0e8a9 \
                        sha256  6c92c56e62d35773d241c1323d4c56692957e2e9ce01b33bcd3190ff7b1d96c0 \
                        size    40717 \
                    github.com/pmezard/go-difflib \
                        lock    v1.0.0 \
                        rmd160  fc879bfbdef9e3ff50844def58404e2b5a613ab8 \
                        sha256  7cd492737641847266115f3060489a67f63581e521a8ec51efbc280c33fc991f \
                        size    11409 \
                    github.com/pires/go-proxyproto \
                        lock    v0.8.1 \
                        rmd160  72e9d6dde7d63eb28a6c369800824ee465eb74dc \
                        sha256  a7af4313249df444e20fa31ca6113a2194028f264a82254b26fd37dce376697e \
                        size    44421 \
                    github.com/pion/transport/v3 \
                        repo    github.com/pion/transport \
                        lock    v3.0.7 \
                        rmd160  d70fccc830be325afe6e1df31474cf09765ba5ee \
                        sha256  a2d46a6f9f3c41543daa06663e06eae54e46a39680d6905d89d389f733bd0e4a \
                        size    85680 \
                    github.com/pion/sctp \
                        lock    v1.8.7 \
                        rmd160  8ce7ab65f809c3dbb6c70a269adc980ba0ac9be3 \
                        sha256  ef36087476da8ed7a2f0ce0345cd04e3d9685782220439fb4fcb9774f6592e78 \
                        size    86079 \
                    github.com/pion/randutil \
                        lock    v0.1.0 \
                        rmd160  21cb9a26b493e73bc12a368981e36652c366c06b \
                        sha256  dc6e48a6df14e670edb0bbe1f7b5a41cbdbc64757756ac0a0ff9da876d9e5c03 \
                        size    7522 \
                    github.com/pion/logging \
                        lock    v0.2.2 \
                        rmd160  851685cb668a4edd86d0811472f260f66f805f07 \
                        sha256  7e7b664fd81980acf6e9ae44328b0b6a83fb996675bcd0f277a437eb78382f5e \
                        size    6749 \
                    github.com/pion/dtls \
                        lock    v2.2.12 \
                        rmd160  3c14e991b5b2b422b2361b545f49c832851fab3f \
                        sha256  5d914903f43c2a6200988ac4b4f0b4e357d9fc6efe9848672cb4a1be8eb2d279 \
                        size    152095 \
                    github.com/phayes/freeport \
                        lock    95f893ade6f2 \
                        rmd160  d1fc5421ad2ca6cf03a0838e2b18b5704a32e956 \
                        sha256  eae7763d5bc66e629379a0c691a5543ccc8b76cf92bd79a4ccf555b023c2512f \
                        size    3355 \
                    github.com/pelletier/go-toml \
                        lock    v1.9.5 \
                        rmd160  82b54e63618f66f791ce83a86ec04b85b24daf96 \
                        sha256  335d53529bfead717c2c44454e05a2396918bba311e3262b8bcb295b7c8772fd \
                        size    106961 \
                    github.com/patrickmn/go-cache \
                        lock    v2.1.0 \
                        rmd160  9e869a3bd93bb2c8a59c96afc0d758ce0430df4f \
                        sha256  57bba72974dfe36ff8dc0003c51888746f34be75addbe18a97413d5830103844 \
                        size    13583 \
                    github.com/onsi/gomega \
                        lock    v1.30.0 \
                        rmd160  bf863b26a63a2b4e1c8e0e2d4e2c18eb709e3f7f \
                        sha256  9428757a413562154aef9a5ada8a167d89b380c64c2e94b59325598c004e7652 \
                        size    315819 \
                    github.com/onsi/ginkgo \
                        lock    v2.17.0 \
                        rmd160  2d49fa4ff27f08fb6cc68ee5546850f46e704c5f \
                        sha256  c750fe5dd19b632fa09a7c6ce010524b4d835e938bcdedde534237416072751d \
                        size    636896 \
                    github.com/mwitkow/go-conntrack \
                        lock    2f068394615f \
                        rmd160  3268411d828a13ea72e010428aa60b27699e3ab7 \
                        sha256  e04d7903408735f48336f72e1fefa887d827fdfefd0b30926dd7522389823ee2 \
                        size    17148 \
                    github.com/mustafaturan/monoton \
                        lock    v1.0.0 \
                        rmd160  9fed7b9af21f6181d42ab0cd53b4e74bc71a7286 \
                        sha256  08ec01e9b8d67065d5a4790c931bb75e59c85d80e11b5c38cebdb25e9280a201 \
                        size    15996 \
                    github.com/mustafaturan/bus \
                        lock    v1.0.2 \
                        rmd160  b9dcf85d4ff9c12b393f314eeb754fa32fe8abf2 \
                        sha256  35ce72077214c3ad793843df8c7a61d782bc381f72cff428f87ffb9d8c492bb5 \
                        size    13132 \
                    github.com/modern-go/reflect2 \
                        lock    v1.0.2 \
                        rmd160  02f0f5d652cd9d03a27876e11610edb31ed7c8b5 \
                        sha256  6394630fb95f41f31a329473d221cecda03753fec7ebfca41e4eb70e32a58b89 \
                        size    14049 \
                    github.com/modern-go/concurrent \
                        lock    bacd9c7ef1dd \
                        rmd160  b039328d6fd40b97513dea8bf5b00adfdd53f14b \
                        sha256  2f3333805bef60544e64ac9a734522205b513f5c461ba19f3d557510bb205afb \
                        size    7533 \
                    github.com/miekg/dns \
                        lock    v1.1.68 \
                        rmd160  51d892edb3e1012d467abd15c4bd2962e8b7e042 \
                        sha256  466fdd599e079777b35df9ee8e7aa6bf56e7f4d8b489946988ebcb5c53a950c6 \
                        size    222264 \
                    github.com/mattn/go-isatty \
                        lock    v0.0.12 \
                        rmd160  4f55aecbddbee6089cbac8456d2932bce2cb57e7 \
                        sha256  d4d1912998d401389e06ee1dbed06e32a8db95350416f227fbe6a59ac84f0651 \
                        size    4549 \
                    github.com/lunixbochs/struc \
                        lock    784aaebc1d40 \
                        rmd160  a9a289f74c01c85c6c272ee3a5a21550c1d65fbf \
                        sha256  7ba956f1055c32b76274641f2af6d9893f732b3bbf6877d2d7e827f4c6ba3ba6 \
                        size    16071 \
                    github.com/leodido/go-urn \
                        lock    v1.4.0 \
                        rmd160  ceb452492eb72d1cc179f3ea4e068e74ca22be3c \
                        sha256  8002ffa13ae89de5bc4c53b87e23fef9c75d1f09af1ae330022464bcbfef1c8a \
                        size    1998706 \
                    github.com/kr/text \
                        lock    v0.1.0 \
                        rmd160  0b3c78459e227170a3b80a0103d87a3eef77ed88 \
                        sha256  5ed970aad0da3cba3cffacdb4d154a162a8968655ee6d6f7b627e71b869efaf6 \
                        size    8691 \
                    github.com/kr/pretty \
                        lock    v0.3.1 \
                        rmd160  8c08579b4c56cdc958794e77afe3413e80aa67c3 \
                        sha256  7fcea475d6280976cf4a838e75d2b3a4105827316e588a80e49e8063d950c999 \
                        size    10232 \
                    github.com/klauspost/reedsolomon \
                        lock    v1.11.7 \
                        rmd160  e56b53225ed6830fdcf6daa0be35611facffcda8 \
                        sha256  742881ef8f9920df1a838f243ce180781bd89e4af489bc5ed04ac7f1b0c03d59 \
                        size    347908 \
                    github.com/klauspost/cpuid \
                        lock    v2.2.5 \
                        rmd160  89c4d44312008cdcb6dc4bde13f584cf4090712d \
                        sha256  9f5b91aca8bda49eedfaba2a420497d44e65e6969794e156b7de74ce72398d2f \
                        size    456004 \
                    github.com/klauspost/compress \
                        lock    v1.17.4 \
                        rmd160  edc4757d4e1c4a66ee976ff31d9f0c53b144e78a \
                        sha256  4aed59f2984b53c8549a6d48993f181e7620d4499ab69083476838cb378e36c4 \
                        size    38743816 \
                    github.com/json-iterator/go \
                        lock    v1.1.12 \
                        rmd160  7b530ae077fa1fa5db7b7e228e92dd39c79c4a4d \
                        sha256  e0ec0450ef7ecedf0dfc1b5c430324fd0e8aedc18bddd0bd730e5a6cb35c41a8 \
                        size    84301 \
                    github.com/jhump/protoreflect \
                        lock    v1.17.0 \
                        rmd160  1c2ba71708162086bcfc176fc4706e8b39b4cb0f \
                        sha256  a97679e031161dae79a71630cbf690fda4ab65f51c4e88062bf19bc3fc8ed75a \
                        size    713442 \
                    github.com/improbable-eng/grpc-web \
                        lock    v0.15.0 \
                        rmd160  15c33f15755986ac762fbe1e27f9e3bf9898db74 \
                        sha256  dbaa9b54b99b2f1de7dc46184929ba941be341b11aff56fe68b58866f5382e12 \
                        size    609651 \
                    github.com/h12w/go-socks5 \
                        lock    76189e178364 \
                        rmd160  f9edbe0fc88a462f7b2b68f96ebbf0d090d25a73 \
                        sha256  9d3c58b3d85dbcaed892e47999a957f9b55e9ce00db583d3ede20aaa0cba84fd \
                        size    8646 \
                    github.com/gorilla/websocket \
                        lock    v1.5.3 \
                        rmd160  3c38c85e08c20fe93c0100bf884feb8fe45fbaed \
                        sha256  bbdca57ccb9369617abde8372d36f0b2ef7cf6208debdbb9ade97808d2ce42a7 \
                        size    54891 \
                    github.com/google/uuid \
                        lock    v1.6.0 \
                        rmd160  3d4f6f95018c6313f7258805845eb2a7e717850c \
                        sha256  72700459e75cad2b36586e8a13aa12c2d6248c45db24d1eebf41e18b1ec1c811 \
                        size    20895 \
                    github.com/google/pprof \
                        lock    b11c3daa6f07 \
                        rmd160  df80cacf65711460cb4d951e64d5d96eeb437ee3 \
                        sha256  dbd35221ea866db5d3fe39800385d840ff749665494c4954f281e97128ef8973 \
                        size    4749666 \
                    github.com/google/gopacket \
                        lock    v1.1.19 \
                        rmd160  4f1732d15d1f4057d37f8e8cdb6bbbcbd722cdd2 \
                        sha256  546027e7edd39388cd5a8f265e30ba921ed452889eceaaecbc1484f20b350a21 \
                        size    950824 \
                    github.com/google/go-cmp \
                        lock    v0.7.0 \
                        rmd160  3f04a79c291d786f9c69c2944bdd521402052a5c \
                        sha256  b621b304b529134076c9ebe09343aea7add039cd98e68be7e5a616245b0c3d03 \
                        size    105180 \
                    github.com/google/btree \
                        lock    v1.1.2 \
                        rmd160  eb1f3f67b53dab641253929ea27331535abc1169 \
                        sha256  313d9beb63d42ce7dd524c0d06f5be81d6ded1a0a667fb3e868129f4b9657ca0 \
                        size    19785 \
                    github.com/golang/protobuf \
                        lock    v1.5.4 \
                        rmd160  d69db706fd894bafba23bda9df27167c6ff37e83 \
                        sha256  25e849ffcfef59114f3a6247d4d4c386449a3d5a347b25d4b5ada1f1a2bf5e5d \
                        size    173020 \
                    github.com/golang/mock \
                        lock    v1.6.0 \
                        rmd160  ed853462703f04ce365bb17b8c88a92994aa5006 \
                        sha256  4b107f6d26db03f8a36ae38f7b017399ed56571cdbf7b7ebc7bff0006c7dffb5 \
                        size    69263 \
                    github.com/golang-collections/go-datastructures \
                        lock    59788d5eb259 \
                        rmd160  58bdda097b5b35842d8ff070d89914db940df562 \
                        sha256  426e60f56f6eef4ea051116187a9bb6a8e23d55c2a68a0b92f01b5bb6a340d94 \
                        size    100525 \
                    github.com/gobwas/ws \
                        lock    v1.2.1 \
                        rmd160  2ac871e83b722709cff9a977fd623f4e88025d20 \
                        sha256  d5f388fdf8553cd513fbefa2f28594a3168cae940b7cf98cfb789c65471c3e14 \
                        size    85793 \
                    github.com/gobwas/pool \
                        lock    v0.2.1 \
                        rmd160  ab7a7e0eb1d0e84b6504dc4b79c5e7727b49f74f \
                        sha256  1d1e19d51e6a5c94c01dbe74e6f31704f2ce1297bed57273366eae93c3073d34 \
                        size    8057 \
                    github.com/gobwas/httphead \
                        lock    v0.1.0 \
                        rmd160  4a366efe9b00893dd749afc725f30ebdfc8d00cc \
                        sha256  4074e5235aac4f5794f989ea1a9e93374d423b37031df77f4db5a80d02b286e1 \
                        size    17217 \
                    github.com/go-task/slim-sprig \
                        lock    52ccab3ef572 \
                        rmd160  12ad1a072801a204a68c464918417611ec20f218 \
                        sha256  0f2045c6c2eb3042b20de955018ca01c0165ed205345312a5e7cb4d6f5254a36 \
                        size    39951 \
                    github.com/go-playground/validator \
                        lock    v10.28.0 \
                        rmd160  36f7183957df87bf490c8148ad50bfc251a8bd5f \
                        sha256  5b1d04aa22d319f12921afb3ec46ea7f168ee510ac7fa8c3f74e190f4aefa071 \
                        size    308651 \
                    github.com/go-playground/universal-translator \
                        lock    v0.18.1 \
                        rmd160  db17dd09961812609699c2c30016db647c4e18b6 \
                        sha256  4613483514bc2df0f103c7ddbb32341fcf4335874063e967001ed150d1b05325 \
                        size    37150 \
                    github.com/go-playground/locales \
                        lock    v0.14.1 \
                        rmd160  762675a94ea6b0bb97d607041d41f9907e961a9e \
                        sha256  ea9d52236f0db72988de8dccc7cdba8162e7e27ba52d455a2c819d11ddef5a0b \
                        size    4365413 \
                    github.com/go-playground/assert \
                        lock    v2.2.0 \
                        rmd160  70d1eaf8695e149d6939fe76d9339f759bfef1b9 \
                        sha256  b71f6cdc47a13b84a9480491077fcddb6309c1cd64a446fb856cff623d31f392 \
                        size    4206 \
                    github.com/go-logr/stdr \
                        lock    v1.2.2 \
                        rmd160  2f24ba9c61d88475841e65ea6109c189fcb6de3c \
                        sha256  694ed0928bb3e77d98e90d48e970dd2750b8fee1170a85897a5f256c3f459a1c \
                        size    9105 \
                    github.com/go-logr/logr \
                        lock    v1.4.3 \
                        rmd160  fa3f731e260c24f2630f1733e655d29efeab318a \
                        sha256  97ad1e0983d04469a87355e1e6d463dd752e31e768d6350a0f81accaf506bdbf \
                        size    57736 \
                    github.com/go-chi/render \
                        lock    v1.0.3 \
                        rmd160  996a96ac2138ca409e8c0e6b98a294a17c0ecb6f \
                        sha256  d3cec85e8db8e92ab9e79e8c2342e7e37667f990bf537154a26c9d825eebeed9 \
                        size    6167 \
                    github.com/go-chi/chi \
                        lock    v5.2.3 \
                        rmd160  999117473a180b2223b4dea94f403948b8e67367 \
                        sha256  82fd737fc5251f6d8c206aece53dd4413ef7cfacdd928072a91e6ca5a6e5928d \
                        size    87956 \
                    github.com/gin-gonic/gin \
                        lock    v1.6.3 \
                        rmd160  70af77dff26595ac0f8377d34c132fabb4a3267d \
                        sha256  bdbafc06ad1936b60cad6e755d2a70f0aa87a1947f6f89cef1380deb19d6451b \
                        size    132491 \
                    github.com/gin-contrib/sse \
                        lock    v0.1.0 \
                        rmd160  13fcc4b8d3f6bb01e0c281a8e1abea601e9af809 \
                        sha256  f021daeb55664e0eb4013e89f95bbcd235c34d39521a32a60d74b906527a5f41 \
                        size    6121 \
                    github.com/gabriel-vasile/mimetype \
                        lock    v1.4.10 \
                        rmd160  f47a46605d8cfb94eb5bdefb0a375a1c71880aec \
                        sha256  a05c8826257dea35689d916156889f9e7b25b6495019a82727e5c142a001b4a8 \
                        size    826827 \
                    github.com/ebfe/bcrypt_pbkdf \
                        lock    3c8d2dcb253a \
                        rmd160  b705ef4caeebacbd1acaad342b6f4738474bfcef \
                        sha256  ad6b7710f4b47c58f101b1958ce80a02e932b7e9217a52325b6664fa832281c9 \
                        size    15165 \
                    github.com/dgryski/go-metro \
                        lock    adc40b04c140 \
                        rmd160  e79b7a7ec524e4cecdd484d39b3028fcbd136ced \
                        sha256  6ef2364e3882754bd21a28c677bd00ec9c8d70990dd2c6d2b33edff605da4792 \
                        size    4513 \
                    github.com/desertbit/timer \
                        lock    c41aec40b27f \
                        rmd160  461e3d5bbfd404cb18c84c1feb2d969cc5daf07a \
                        sha256  89b000634427d5034ed97f707385cc046c4f1c5202c4c112e3429127016350dd \
                        size    5599 \
                    github.com/davecgh/go-spew \
                        lock    v1.1.1 \
                        rmd160  7c02883aa81f81aca14e13a27fdca9e7fbc136f7 \
                        sha256  e85d6afa83e64962e0d63dd4812971eccf2b9b5445eda93f46a4406f0c177d5f \
                        size    42171 \
                    github.com/cenkalti/backoff \
                        lock    v4.1.1 \
                        rmd160  1047a62c90ab24cd939c3abaa0e05d92ab978c5c \
                        sha256  9dd966323058af72dedc32d2f2da9123c5c899575b6a735cdd49d4bf963101cd \
                        size    9833 \
                    github.com/bufbuild/protocompile \
                        lock    v0.14.1 \
                        rmd160  9c4221339e75d63cb1ec6cb7a9281976280ca7d2 \
                        sha256  803b7f9ef5142aa8bae7ff80b3e64a0394970eb1f6971d715e262c8d3d397da4 \
                        size    493706 \
                    github.com/boljen/go-bitmap \
                        lock    23cd2fb0ce7d \
                        rmd160  52e0ef11d5b86f86d1cb4b880b6dd0b24647a05f \
                        sha256  75aa6659797b0152c33342fb3817c23e94a061692199dff79acbfa075bdf2eeb \
                        size    4495 \
                    github.com/apernet/quic-go \
                        lock    cb103fcecfe7 \
                        rmd160  721a49ef86dafe8604276c72113d13a31f8d1075 \
                        sha256  2e07863494ff61d05653160e24bdddaf95b733a2ffa75df932f423607840efab \
                        size    626911 \
                    github.com/andybalholm/brotli \
                        lock    v1.0.6 \
                        rmd160  8f20652f784656ad9d0862c26b302afa872e0d4c \
                        sha256  08ee28e438225d672d59337c69d5867c6f44363f3f7f95e2fe624c17d34513f7 \
                        size    1818065 \
                    github.com/ajg/form \
                        lock    v1.5.1 \
                        rmd160  5fceb031a406f7e01c35d0a60b5c65e8c9ee4750 \
                        sha256  22b2b5397f14e93fd4fa292c8de91a6283c7afcfb1254a2e3dba9fa61178386a \
                        size    14948 \
                    github.com/aead/cmac \
                        lock    7af84192f0b1 \
                        rmd160  a064c6f254039a50a12ff599b64635a425c83376 \
                        sha256  308b4e723a653b70168a73764af5cd02fba35db546fe51ea1e2dcac128d49480 \
                        size    6258 \
                    github.com/adrg/xdg \
                        lock    v0.5.3 \
                        rmd160  09f5f8c7929d10cb60809329b0c281b7afa2e3e1 \
                        sha256  1cb5eba36f828d1810c7c902c776ff723b2ae3f07a53a32fdbbfc14f58eadb6f \
                        size    23159

# Notes for updating this port:
# Replace google.golang.org/genproto/googleapis/rpc with google.golang.org/genproto
# Replace github.com/uber/mock with github.com/uber-go/mock
# Replace github.com/pion/transport with github.com/pion/transport/v3 and add the original line back as repo
# Replace github.com/v2fly/hysteria/core with github.com/v2fly/hysteria
# Remove all opentelemetry lines

post-extract {
    ln -s ${gopath}/src/github.com/quic-go ${gopath}/src/github.com/lucas-clemente
    ln -s ${gopath}/src/github.com/pion/transport/v3 ${gopath}/src/github.com/pion/transport/v2
}

depends_build-append \
                    port:wget

build.env-append    CGO_ENABLED=0
build.args          -o ./v2ray
build.post_args     -ldflags '-s -w'
build.dir           ${worksrcpath}/main

destroot {
    xinstall -m 755 ${worksrcpath}/main/v2ray ${destroot}${prefix}/bin
    xinstall -d ${destroot}${prefix}/etc/v2ray
    xinstall -m 640 ${worksrcpath}/release/config/config.json ${destroot}${prefix}/etc/v2ray
    system -W ${destroot}${prefix}/bin "wget https://github.com/v2fly/geoip/raw/release/geoip.dat"
    system -W ${destroot}${prefix}/bin "wget https://github.com/v2fly/domain-list-community/raw/release/dlc.dat -O geosite.dat"
}

# until #2365 is implemented, manually handle config file
post-destroot {
    file rename ${destroot}${prefix}/etc/v2ray/config.json ${destroot}${prefix}/etc/v2ray/config.json.example
}

post-activate {
    if {![file exists ${prefix}/etc/v2ray/config.json]} {
        file copy ${prefix}/etc/v2ray/config.json.example ${prefix}/etc/v2ray/config.json
    }
}

startupitem.create          yes
startupitem.executable      ${prefix}/bin/v2ray run --config ${prefix}/etc/v2ray/config.json

notes "
    The default configuration file is copied to ${prefix}/etc/v2ray/config.json.\
    It is used by the startup item (service). You should edit or replace it.

    v2ctl utility has been removed in version 5. Its functionalities are now in\
    the main executable.
"
