aboutsummaryrefslogtreecommitdiff
path: root/proxy
AgeCommit message (Collapse)Author
5 daysSimplify proxy NAT checking logicHEADmainitchyonion
2024-05-09Use ptutil for safelog and prometheus rounded metricsmeskio
* Related: #40354
2024-04-04Merge remote-tracking branches 'gitlab/mr/289' and 'gitlab/mr/293'meskio
2024-04-04Update README.md to include all available CLI optionsSky
2024-04-04Allow to set listen address for metrics service via cl flagsSky
2024-02-17refactor: change deprecated "io/ioutil" package to recommended "io" packageam3o
2024-01-16Cosmetic fixes taken from !219.David Fifield
shelikhoo/dev-udp-performance-rebased branch https://gitlab.torproject.org/shelikhoo/snowflake/-/commits/9dce28cfc2093490473432ffecd9abaab7ebdbdb
2024-01-10Add proxy commandline option for probe server URLCecylia Bocovich
2023-12-21Suppress logs of EventOnProxyConnectionOverCecylia Bocovich
2023-12-18Add Ignore Android Restriction Workaround for Proxyn8fr8
2023-11-21Link a section in the pion/webrtc@3.0.0 release notes.David Fifield
2023-11-20Document that prometheus transfer metrics are in KBCecylia Bocovich
2023-10-31Refactor disabling the stats loggerCecylia Bocovich
Have Snowflake proxy periodically collect throughput stats even if the stats logger is disabled so that it can be handled by the prometheus metrics.
2023-10-31Update prometheus metrics to use new EventOnProxyStatsCecylia Bocovich
2023-10-31Process and properly log connection closure statsCecylia Bocovich
2023-10-30Modify EventOnProxyStats to include summary dataCecylia Bocovich
2023-10-30Proxy stats log only what occurred that time intervalCecylia Bocovich
Modify the periodic stats output by standalone snowflake proxies to only include the data transferred during the time interval being logged. This is an improvement of previous behaviour that logged the total data transferred by all proxy connections that were closed within the time interval being logged.. Closes #40302: https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40302
2023-10-30Move creation of periodic stats task inside proxy libraryCecylia Bocovich
This adds a new type of SnowflakeEvent. EventOnProxyStats is triggered by the periodic task run at SummaryInterval and produces an event with a proxy stats output string.
2023-10-30Zero bytesSyncLogger stats after reading themCecylia Bocovich
This also makes the call to GetStat() more thread safe.
2023-10-30Remove ThroughputSummary from bytesLoggerCecylia Bocovich
This was leftover from when we used to log the total throughput of connections when they close. It should be removed for privacy reasons as mentioned in https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40079
2023-10-12fix(proxy): Correctly close connection pipe when dealing with errorKokaKiwi
2023-10-09fix(proxy): remove _potential_ deadlockWofWca
The `dc.Send()` should increase the `bufferedAmount` value, so there is no need to add the message length a second time. Also replace GT with GE, for the case where `BufferedAmountLowThreshold === maxBufferedAmount` Currently the deadlock cannot happen because `maxBufferedAmount` and `BufferedAmountLowThreshold` are too far apart, in fact the former is 2x the latter. See - https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/merge_requests/144#note_2902956 - https://github.com/pion/webrtc/pull/2473 - https://github.com/pion/webrtc/pull/2474
2023-09-20Use ShouldBeNil to check for nil valuesrenovate/github.com-smartystreets-goconvey-1.xmr-origin-165Cecylia Bocovich
2023-07-29Change DefaultRelayURL back to wss://snowflake.torproject.net/.David Fifield
Fixes #40283. Compare to #31522.
2023-07-28feat: add option to expose the stats by using metricsam3o
2023-06-19Implement DataChannel flow controlVort
2023-05-31Move the development to gitlabmeskio
Related: tpo/anti-censorship/team#86
2023-05-29Validate SDP offers and answersitchyonion
2023-03-22Use latest Pion WebRTC libs versionKokaKiwi
- webrtc and dtls libs got the "Skip Hello Verify" patches applied Link: https://github.com/pion/dtls/pull/513 Link: https://github.com/pion/webrtc/pull/2433
2023-03-14Add comments and improve loggingitchyonion
2023-03-14Proxy: add outbound-address configitchyonion
2023-02-09fix: up/down traffic stats being mixed upWofWca
2022-12-31Switch default proxy STUN server to stun.l.google.comCecylia Bocovich
This is the same default that the web-based proxies use. Proxies do not need RFC 5780 compatible STUN servers.
2022-12-02update README.md help output, fix #40232Flo418
2022-12-02enhance help for capacity flag, fix #40208Flo418
2022-11-28Refactor timeout loop to use a context and reuse timersCecylia Bocovich
2022-11-28Terminate timeoutLoop when conn is closedCecylia Bocovich
2022-11-28Add timeout for webRTCConnCecylia Bocovich
2022-11-28Refactor creation of webRTCConn in proxyCecylia Bocovich
2022-11-23add version output to logShelikhoo
2022-11-23Add Version Output Support to SnowflakeShelikhoo
From now on, there will be a file at common/version/version.go that includes current version number.
2022-11-21change bandwidth type from int to int64 to prevent overflowluciole
2022-11-16proxy: Let verbose level act on file loggingitchyonion
2022-11-16Use event logger for proxy starting message and NAT infoitchyonion
2022-11-10update formatTraffic so that bandwidth unit is always KBluciole
2022-10-14proxy: Check ephemeral port range ordering at flag parsingKokaKiwi
2022-10-12proxy: Fix ephemeral ports range CLI flag (again)KokaKiwi
2022-10-12Bump minimum go version to 1.15Cecylia Bocovich
2022-10-12proxy: Correctly handle argument parsing errorKokaKiwi
2022-10-12proxy: Fix build with golang 1.13KokaKiwi