mirror of https://github.com/libp2p/go-libp2p.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Branch:
master
0.28.0-changelog
0270-changelog
2018-Q4-OKR
MarcoPolo-patch-1
MarcoPolo-patch-2
MarcoPolo-patch-3
MarcoPolo-patch-4
MarcoPolo-patch-5
MarcoPolo/issue2194
MarcoPolo/issue2223
MarcoPolo/issue2233
MarcoPolo/issue2259
add-retraction
addrfactory-fix
asn-util-init
autonat-basichost
autonat-metrics
autonat/skip-dial-error
autonat2-example
autonatv2-dns
autonatv2-panic
autorelay-metrics
autorelay-polling-debug
autorelay-relay-addrs
autorelay-remove-v1-support
autorelay-test
autorelay-v1-handling
base-host
basic-host-optimize-dedup-addrs
basic-host-test-remove-print
basic-identify-metrics
benchmark-identify-protobuf
blackhole-detector
blackhole-test-fix
btcd-replace
buildpulse
bump-deps
certificate-manager
chore/fixup-examples
chore/update-examples
chore/update-ws-transport
ci-1-22
ci-go-crypto-update
ci-protoc-version-comment
ci-udp-receive-buffer
ci/go-1.13
circleci-and-merge-testsuite-transports
circleci-project-setup
circuitv2
circuitv2-transport-connstate
circuitv2-unlimited-relaying
circuitv2-voucher
condense-release-checklist
conn-limiter-fix
conn-stats
connect-dont-wait-for-identify
connectedness
connectedness-test
connection-gating
connmgr
debug
debug-autorelay
debug-autorelay-test
debug-autorelay2
debug-coordination
debug-examples-test
debug-holepunch
debug-identify-failures
debug-identify-metrics
debug-kubo
debug-log-harness
debug-logging
debug-openssl
debug-proto-downgrade
debug-reconnect
debug-reconnect-test
debug-reuse
debug-swarm
debug-swarm-metrics
debug-tcp
dedup-addrs-alloc-free
deflake-quic-holepunching-test
delete-autorelay-candidate-relay
dep/import-smux
deprecate-pstoreds
deprecated-comment-standard-form
dial-worker-remove-todo
direct-unlimited-rename
disable-flaky-relay-test-on-ci
disable-rcmgr-in-circuitv2-tests
disable-rcmgr-in-holepunch-tests
disable-test-parallelism
discovery
doc-perf
docs-improvements
document-rcmgr-libp2p-limits
dont-connect-to-already-connected-relays
dont-wait-for-identify
drop-openssl
drop-simultaneous-open
eventbus-metrics-names
examples-33
examples-v0300
examples-v0320
expose-transport
extend-quic-webtransport-test
feat/801
feat/848
feat/860
feat/autorelay-docs
feat/autorelayv2
feat/backoff-listing
feat/catch-panic
feat/consolidate-abstractions
feat/context
feat/err-peerid-mismatch
feat/eventbus-to-swarm
feat/evt-based-hole-punching
feat/expose-muxer-ids
feat/fix-AutoRelay-background
feat/fix-compile
feat/go-mod
feat/go-smart-records
feat/group-exclude-port
feat/hole-punching-signalling
feat/identify-use-transient
feat/inject-resolver
feat/integrate-limited-relay
feat/introspectable-host
feat/introspection-review
feat/introspection2.0
feat/libp2p-version
feat/p2p-multiaddr
feat/pnet/working3
feat/protobuf
feat/rcmgr-metrics-bench
feat/rcmgr-metrics-mem
feat/recursive-dnsaddr
feat/relay-integrate
feat/self-dial
feat/shared-tcp
feat/signed-records-chunking
feat/simopen
feat/static-relays
feat/stream-proto-log
feat/udp
feat/update/go-reuseport
feat/websocket-golog
feature/standardize-readme
filter-ip6zone
find-peers-regularly
fix-autonat-no-protocol
fix-autorelay-tests
fix-backoffconnector-flake
fix-basichost-signed-peer-record
fix-build-riscv64
fix-connect-error
fix-crypto-benchmark
fix-dashboard-docker-compose-linux
fix-dial-transport-selection
fix-flaky-autorelay-test
fix-flaky-autorelay-tests
fix-flaky-backoff-connector-test
fix-flaky-backoff-connector-test2
fix-flaky-basic-dial-sync
fix-flaky-dial-existing-conn-test
fix-flaky-dial-worker-loop-basic
fix-flaky-holepunch-end-to-end-test2
fix-flaky-holepunch-test
fix-flaky-holepunching-test
fix-flaky-mock-streams-test
fix-flaky-notification-test
fix-flaky-notifications-test
fix-flaky-ping-test
fix-flaky-pstoremanager-close
fix-flaky-quic-connection-gating-test
fix-flaky-quic-garbage-collector-running-detection
fix-flaky-quic-holepunching-test
fix-flaky-quic-rcmgr-test
fix-flaky-reconnect-test
fix-flaky-reuse-garbage-collect-test
fix-flaky-signed-peer-record-basic-host-test
fix-flaky-swarm-rcmgr-test
fix-flaky-swarm-test-fail-first
fix-flaky-swarm-test-resource-manager
fix-flaky-test-cancelation-test
fix-flaky-test-dial-existing-connection-test
fix-flaky-tls-cancelation-test
fix-flaky-tls-handshake-cancellation-test
fix-holepunch-message-type
fix-holepunch-service-close
fix-identify-bug
fix-interop-composition
fix-max-age
fix-mdns-ip-parsing
fix-nat-check
fix-peer-id-decoding-routed-host
fix-port-reuse
fix-pstoremanager-race
fix-racy-autorelay-test
fix-racy-swarm-conn-comparison
fix-rcmgr-conn-scope-on-upgrader-err
fix-relay-oversubscription
fix-relay-svc-init
fix-rnd-race
fix-routed-host-error-shadowing
fix-rsa-key-generation
fix-swarm-conn-logging
fix-tls-invalid-cert-test
fix-typo-in-changelog
fix-websocket-address-wss
fix-webtransport-accept-queue-test
fix-webtransport-certmanager-init
fix-zeroconf-instance-name
fix/1611
fix/acceptable-conn
fix/cache-public-key
fix/close-resource-mgr
fix/ctor
fix/delta-push-block
fix/hacky-addrfactory-webtransport
fix/id-protocol-upgrade
fix/minimal-autonat-dialer
fix/mock-tests
fix/mocknet-conn-race
fix/new-doc-quic
fix/no-custom-field
fix/obserations
fix/peerhandler-panic
fix/ping
fix/re-enable-ws-transport-tests
fix/record-panic
fix/remove-addresses-immediately
fix/remove-deprecated-logging
fix/remove-v1-log-dep
fix/reset-ping-stream
fix/revert-correct-external-addr
fix/set-protocols-race
fix/tests
fix/wss-conn-ma
flaky-http
fx
fx-init-null-rcmgr
galargh-patch-1
galargh/s3-build-cache
gammazero/previous-well-known-resource
gating-tests
gen-ekeypair
gh-actions-directories
githook-go-mod-tidy
gitignore-qlog
go-ipfs-0.4.23
go-max-procs
go-mod-tidy
go1.20
gomod/update
google-protobuf
gx/update-jccl6u
gx/update-nza0mn
gx/update-y54c9y
happy-eyeballs-dialing
hole-punching-signaling
holepunch-addr-filter
holepunch-metrics
holepunch-rcmgr
host-no-duplicate-dials
id-obs-addr
identify-alloc-free-slice-sorting
identify-debug
identify-dedup
identify-disable-racy-test
identify-disable-racy-test-race
identify-dont-save-signed-peerrecords
identify-filter-addrs
identify-fix-obsaddr-sorting
identify-metrics
identify-remove-delta
identify-remove-go117
identify-remove-protocol-version
identify-simplify-listen-addr-handling
identify-spurious-pushes
identify-test-no-more-mocknet
identify-timeouts
increase-eventually-interval
insecure-constructor
install-protoc-github-secret
interop-test-ipdx-runner
invalid-identity
jenkinsfile
kevina/fix-go-vet
leonrinkel-2751
listen-defaults-quic-v1
local-addresses-updated-event-test
marco-pr-1999-fork
marco/1497
marco/1498
marco/1502
marco/1523
marco/1565
marco/1566
marco/1575
marco/1585
marco/1904
marco/1970
marco/2155
marco/2194-deadline
marco/2194-rcmgr
marco/2194-streams
marco/2194-test-suite
marco/2318
marco/TestSignedPeerRecordWithNoListenAddrs
marco/add-log-level
marco/always-close-connscope
marco/attempt-fix-timeout
marco/backoff-update-local-ip
marco/backwards-compat-wrapped-rcmgr
marco/better-latency-metrics-bucket
marco/better-peerstore-gc
marco/better-peerstore-gc-and-timer
marco/bump-deps
marco/bump-gorilla-websocket
marco/bump-quic-go
marco/bump-timeeout-example
marco/bump-timeouts-flaky-tests
marco/bump-version-v020
marco/ci-tweak-2
marco/ci-tweaks
marco/circleci-project-setup
marco/cleanup-stream-scope
marco/close-autonat-service
marco/close-conns-on-wrap-err
marco/close-host-on-sigint
marco/comment
marco/connmgr-mockclock
marco/debug-CI
marco/debug-lgs
marco/dedup-addrs
marco/dedup-metrics-example
marco/detect-tcp-simopen
marco/deterministic-certhashes
marco/dial-from-your-own-listener
marco/drop-draft29
marco/drop-draft29-only
marco/evetually-connmgr
marco/fail-on-timeout
marco/filter-dial-addrs
marco/fix-busy-loop
marco/fix-connmgr-concurrent-access
marco/fix-flaky-basic-host-tests
marco/fix-flaky-noalloc-test
marco/fix-flaky-tests-and-busy-loop
marco/fix-http-legacy-close-notifier
marco/fix-obsaddr-listenAddr-comparison
marco/fix-rcmgr-conn-accounting
marco/fix-rcmgr-conn-accounting-on-master
marco/fix-swarm-metrics-dashboard-m
marco/fix-ticker-usage
marco/fix-virtuallistener
marco/flaky-quic
marco/flaky-test-2
marco/flaky-test-investigation
marco/flaky-tests
marco/flaky/TestIdentifyPushOnAddrChange
marco/flaky/TestMaxAge
marco/flaky/TestMultiplePeers
marco/flaky/TestReservationFailures/unsupported_protocol
marco/fx-modules
marco/fx-update
marco/go-mss-update
marco/go-multiaddr-dns-v040
marco/gostream
marco/http-conn-close
marco/http-host-implements-roundtripper
marco/http-path
marco/http-peer-id-auth
marco/id-flaky
marco/identify-events
marco/identify-fix
marco/impl-resolver-circuit-tpt
marco/increase-timeout
marco/increase-timeout-reuse-gc-test
marco/layered-transports
marco/less-flaky-quic-tests
marco/less-flaky-relay-test
marco/less-flaky-test-more-streams-than-limits
marco/libp2p-http
marco/limit-reader-wss
marco/limit-rsa-key-size
marco/log-listener-err
marco/mkreleaselog-in-ci
marco/mocknet-fix
marco/newroundtripper
marco/no-error-log-if-canceled
marco/no-filter-unknown-space
marco/no-parallel-dials
marco/no-signed-cert-support-webtransport
marco/openconnNoIP
marco/p2p-http
marco/pace-dials-in-CI
marco/peer-id-new-type
marco/perf
marco/prom-metrics-rcmgr
marco/proper-error-listen-on-certhash
marco/quic-v1
marco/rcmgr-and-ip
marco/rcmgr-config-unset
marco/release-v0351-retry
marco/release-v037
marco/remove-32bit-tests
marco/remove-dup-readme-example
marco/remove-hack
marco/remove-metrics-example
marco/rename-well-known
marco/rever-quic-go-update
marco/revert-non-standard-commit
marco/sanitize-rsvp-addrs
marco/set-missing-deadlines
marco/slices-package
marco/snapshot-defaults-test
marco/start-autorelay
marco/stream-migration
marco/support-cidr-in-conn-limiter
marco/swarm-conn-count
marco/swarm-flaky-tests
marco/synchronize-limits-with-dials
marco/test-max-age-flaky
marco/test-plans-interop
marco/test-plans-interop-timeout
marco/test-tidy
marco/transport-test-increase-linearly
marco/update-chat-with-rend-example
marco/update-chat-with-rendezvous
marco/update-circuitv2-proto
marco/update-examples
marco/update-examples-29
marco/update-fx
marco/update-go-multistream
marco/update-quic-go
marco/update-rcmgr-logic
marco/update-rcmgr-readme
marco/update-readme-badge
marco/update-readme-go-version
marco/update-tests-to-spec
marco/update-webtransport-go
marco/upgrade-go-multistream
marco/use-any-port
marco/v0.33.1
marco/v0.34.0
marco/v0.36.0
marco/webrtc-ignore-conn-test
marco/webrtc-reuse-quic-conn
marco/webtransport-addrs-from-quic
marco/webtransport-resolver
marco/with-fx-option
marco/wss-backport
marco/wss-host-headers
master
mdns
mdns-handle-peer-found-no-go-routine
mdns2
merge-circuit-v1
merge-gostream
merge-muxer-multistream
merge-nat
merge-repo
merge-testsuite-transports
merge-transport-into-network
metrics-local-grafana-docker-compose
metrics-slice-pool
move-rcmgr-tests
multi-modules
multistream-negotiate-lazy
multistream-ping
mux_sel_populate_nextProto
muxer-sel-it
muxer-selection-optimize
mxinden-patch-1
natmgr-wg
no-more-testing-net
no-more-testing-netutil
noise-mux-sel2
noise-server-send-early-data
nolistener
normalise-webrtc
only-fix-nat-check
optimize-ping
peerstore-empty-peer-id
prometheus-registration
proto-intern
qlog-buffer-size
quic-default-listen-addr
quic-disable-vn
quic-draft-29-better-error
quic-fix-race-condition-in-test
quic-metrics
quic-remove-metrics
quic-remove-rcmgr-error-string
quic-reuse-mock-clock
quic-tests-ctx-timeout
rcmgr
rcmgr-fix
rcmgr-itest
rcmgr-metrics-prefix
readme-clean-up-toc
readme-monorepo
readme-remove-testing
recurse-resolving
recursive-resolving
reduce-autorelay-backoff-flakiness
reduce-backoffcache-test-flakiness
reduce-default-negotiation-timeout
refactor-identify-push-sending
relay-opt-infinite-limits
relay-shutdown
release
release-033
release-1
release-2
release-branch
release-branch-v020
release-checklist
release-v018
release-v0180-rc1
release-v0180rc6
release-v0190
release-v0191
release-v0192
release-v0193
release-v0194
release-v0200
release-v0201
release-v0202
release-v022
release-v023
release-v0230
release-v0231
release-v0232
release-v0233
release-v0234
release-v0240
release-v0241
release-v0242
release-v026
release-v0260
release-v0261
release-v0262
release-v0263
release-v0264
release-v027
release-v0270
release-v0272
release-v0273
release-v0274
release-v0275
release-v0276
release-v0277
release-v0278
release-v0279
release-v028
release-v0281
release-v0282
release-v0283
release-v029
release-v0290
release-v0291
release-v030
release-v0300
release-v0301
release-v031
release-v0311
release-v0312
release-v032
release-v0322
release-v033
release-v0330
release-v0331
release-v0332
release-v034
release-v0341
release-v035
release-v0351
release-v0352
release-v0353
release-v0354
release-v0355
release-v036
release-v0361
release-v0362
release-v0363
release-v0364
release-v0365
remove-circuit-v1
remove-codecov
remove-conn-local-private-key
remove-consistent-addr-check
remove-core-mux
remove-deprecated-filter-option
remove-eventbus-license
remove-go-version-and-go-mod
remove-introspection
remove-mplex
remove-ms-transport
remove-muxer-multistream
remove-obs-addr-manager-test
remove-package-list
remove-peer-encode
remove-peer-id-pretty
remove-testing-suite-muxer-dependency
remove-testing-suite-sec-dependency
rename-yamux
reservation-required
resolve-addrs-p2p
resources-for-ipfs-config
revert-2268-fix-webtransport-certmanager-init
revert-276-update-go-detect-race
revert-peerstore-context
rewrite-reconnect-test
rm-roadmap-file
roadmap-remove-security-addr-in-multiaddr
run-go-generate-on-ci
security-in-multiaddr
security-policy
security-remove-licenses
self-hosted
set-protocol-fix
shared-port-quic-webtransport
shared-quic-webtransport-port
simplify-nat
slim-swarm-notifiee
smart-multi-module
speed-up-dial-worker-concurrent-failure-test
speed-up-stateless-reset-test
stabilize
staging/hole-punching-phase1
steb/connected-v-transient
sukun-webrtc-docs
sukun/addr-factory
sukun/addrs-fix
sukun/autonat-swarm-fix
sukun/autonat-v2
sukun/autonat-v2-2
sukun/autonatv2-example
sukun/autonatv2-metrics
sukun/autorelay-flake
sukun/backoff-cleanup
sukun/basic-host-comment
sukun/black-hole-config
sukun/connectedness-check
sukun/constructor-transport-test
sukun/dedup-addrs-noalloc
sukun/deprecate-dial-ranker-opt
sukun/dht
sukun/dial-error
sukun/dial-filter-error
sukun/dial-latency
sukun/dial-peer
sukun/dial-ranking-nat64
sukun/dial-worker-loop-pp
sukun/dial-worker-reverse
sukun/document-instant-timer
sukun/econn-reset
sukun/error-codes
sukun/examples-v0280
sukun/fix-bh-dashboard
sukun/fix-comment-sort-addr-alloc
sukun/fix-dialbackoff-comment
sukun/fix-dialbackoff-mutex-usage
sukun/fix-flaky-listen-addr
sukun/fix-relay-delay
sukun/fix-transient
sukun/flaky-holepunch-test
sukun/flaky-quic-reuseport
sukun/go-1.23
sukun/gomock
sukun/happy-eyeballs-tcp-3
sukun/holepunch-addrs
sukun/host-close
sukun/host-close-2
sukun/identify-dns
sukun/identify-filter-nat64-ipv6-addresses
sukun/marco/2318
sukun/metricshelper-improvements
sukun/mock-transport
sukun/newstream-timeout
sukun/peerstore-limit
sukun/rcmgr-log
sukun/rcmgr-metrics-enabled-default
sukun/rcmgr-metrics-package-refactor
sukun/rcmgr-metrics-package-refactor-2
sukun/refactor-dial-addr
sukun/relay-reservations
sukun/remove-reqno
sukun/shared-bh
sukun/smart-dialing-default
sukun/swarm-metrics-close
sukun/swarm-refactor-pending
sukun/swarm-stream
sukun/tcp-close
sukun/tcp-conn-established-update
sukun/tcp-happy-eyeballs-2
sukun/tor-host
sukun/transport-api-update
sukun/transport-test-context
sukun/unspecified-addr
sukun/update-sec-url
sukun/upgrade-stun
sukun/webrtc-bench
sukun/webrtc-debug
sukun/webrtc-debug-interop
sukun/webrtc-fin-ack
sukun/webrtc-flaky
sukun/webrtc-increase-max-msg-size
sukun/webrtc-integ
sukun/webrtc-listen-ctx
sukun/webrtc-low-timeout
sukun/webrtc-pion-logs
sukun/webrtc-pool
sukun/webrtc-quic
sukun/webrtc-reuseport
sukun/webrtc-udpmux-flake
sukun/ws-close-err
swarm-dups
swarm-fix-listenclose
swarm-improve-dial-ranker-docs
swarm-metrics
swarm-typed-atomics
swarm-webtransport-expensive
sync-swarm-notifs
tcp-tests-yamux
test-new-workflow
test/autonat
test/ci
test/peer-records-no-listen-addrs
testing/flare
tls-mux-sel
transport-tests-disable-mplex
transport-tests-security-and-muxers
transport-tests-stream-read-deadline
udpate-quic-go
update-all-deps
update-deps
update-deps-for-v030
update-deps-v0.36
update-deps-v029
update-deps-v33
update-examples-v024
update-examples-v0260
update-go-addr-util
update-go-multiaddr
update-gomock
update-lru-arc
update-multiaddr
update-nat
update-peerstore
update-protos
update-quic
update-quic-41
update-quic-and-webtransport
update-quic-go
update-quic-go-rsa-keys
update-quic-go-v033
update-quic-go-v0375
update-quic-go-v0380
update-readme
update-release-md
update-tcp-and-multiaddr
update-transport-deps
update-transport-upgrader
update-webtransport-go
update-webtransport-go-053
update-webtransport-v052
use-ma-contains
use-yamux-in-tests
v0180-patch
v0181-patch-release
web3-bot/sync
webrtc
webrtc-bm
webrtc-bm-2
webrtc-bm-cpu
webrtc-certhash
webrtc-cleanup-quickly
webrtc-close-dc
webrtc-cmd
webrtc-cmd-send-4mb
webrtc-cmd-timeout
webrtc-common-logger
webrtc-conn-close
webrtc-dc
webrtc-debug
webrtc-echobm
webrtc-experimental
webrtc-fix
webrtc-flaky-fix
webrtc-listener-close
webrtc-logger-bug
webrtc-non-experimental
webrtc-packetio-shortbuf
webrtc-pvt-pvt
webrtc-ufrag-fix
webrtcprivate/integration-tests
webrtcprivate/interop
webrtcprivate/transport
websocket-dont-resolve-dnsaddr
websocket-gorilla
webtransport-add-cert-hash-dont-wait
webtransport-conn
webtransport-default
webtransport-tame-test-output
webtransport-tests-more-randomness
wip/js-interop
wss-experiment
gx/v1.0.0
gx/v2.0.1
gx/v2.0.2
gx/v2.0.3
gx/v3.0.0
gx/v3.1.0
gx/v3.2.0
gx/v3.2.1
gx/v3.2.2
gx/v3.2.3
gx/v3.3.0
gx/v3.3.1
gx/v3.3.2
gx/v3.3.3
gx/v3.3.4
gx/v3.3.6
gx/v3.3.7
gx/v3.4.0
gx/v3.4.1
gx/v3.4.2
gx/v3.4.3
gx/v3.5.0
gx/v3.5.1
gx/v3.5.2
gx/v3.5.3
gx/v3.5.4
gx/v3.6.0
gx/v4.0.0
gx/v4.0.1
gx/v4.0.2
gx/v4.0.3
gx/v4.0.4
gx/v4.1.0
gx/v4.2.0
gx/v4.3.0
gx/v4.3.1
gx/v4.3.10
gx/v4.3.11
gx/v4.3.12
gx/v4.3.2
gx/v4.3.3
gx/v4.3.4
gx/v4.3.5
gx/v4.3.6
gx/v4.3.7
gx/v4.3.8
gx/v4.3.9
gx/v4.4.0
gx/v4.4.1
gx/v4.4.2
gx/v4.4.3
gx/v4.4.4
gx/v4.4.5
gx/v4.5.0
gx/v4.5.1
gx/v4.5.2
gx/v4.5.3
gx/v4.5.4
gx/v4.5.5
gx/v5.0.0
gx/v5.0.1
gx/v5.0.10
gx/v5.0.11
gx/v5.0.12
gx/v5.0.13
gx/v5.0.14
gx/v5.0.15
gx/v5.0.16
gx/v5.0.17
gx/v5.0.18
gx/v5.0.19
gx/v5.0.2
gx/v5.0.20
gx/v5.0.21
gx/v5.0.3
gx/v5.0.4
gx/v5.0.5
gx/v5.0.6
gx/v5.0.7
gx/v5.0.8
gx/v5.0.9
gx/v6.0.0
gx/v6.0.1
gx/v6.0.10
gx/v6.0.11
gx/v6.0.12
gx/v6.0.13
gx/v6.0.14
gx/v6.0.15
gx/v6.0.16
gx/v6.0.17
gx/v6.0.18
gx/v6.0.19
gx/v6.0.2
gx/v6.0.20
gx/v6.0.21
gx/v6.0.22
gx/v6.0.23
gx/v6.0.29
gx/v6.0.3
gx/v6.0.4
gx/v6.0.5
gx/v6.0.6
gx/v6.0.7
gx/v6.0.8
gx/v6.0.9
v0.0.1
v0.0.10
v0.0.11
v0.0.12
v0.0.13
v0.0.14
v0.0.15
v0.0.16
v0.0.17
v0.0.18
v0.0.19
v0.0.2
v0.0.20
v0.0.21
v0.0.22
v0.0.23
v0.0.24
v0.0.25
v0.0.26
v0.0.27
v0.0.28
v0.0.29
v0.0.3
v0.0.30
v0.0.31
v0.0.32
v0.0.4
v0.0.5
v0.0.6
v0.0.7
v0.0.8
v0.0.9
v0.1.0
v0.1.1
v0.1.2
v0.10.0
v0.10.1
v0.10.2
v0.10.3
v0.11.0
v0.12.0
v0.13.0
v0.14.0
v0.14.1
v0.14.2
v0.14.3
v0.14.4
v0.15.0
v0.15.0-rc.1
v0.15.1
v0.16.0
v0.16.0-dev
v0.17.0
v0.18.0
v0.18.0-rc1
v0.18.0-rc2
v0.18.0-rc3
v0.18.0-rc4
v0.18.0-rc5
v0.18.0-rc6
v0.18.1
v0.19.0
v0.19.1
v0.19.2
v0.19.3
v0.19.4
v0.2.0
v0.2.1
v0.20.0
v0.20.1
v0.20.2
v0.20.3
v0.21.0
v0.21.0-rc
v0.22.0
v0.23.0
v0.23.1
v0.23.2
v0.23.3
v0.23.4
v0.24.0
v0.24.0-dev
v0.24.1
v0.24.2
v0.25.0
v0.25.1
v0.26.0
v0.26.1
v0.26.2
v0.26.3
v0.26.4
v0.27.0
v0.27.1
v0.27.2
v0.27.3
v0.27.4
v0.27.5
v0.27.6
v0.27.7
v0.27.8
v0.27.9
v0.28.0
v0.28.1
v0.28.2
v0.28.3
v0.29.0
v0.29.1
v0.29.2
v0.3.0
v0.3.1
v0.30.0
v0.30.1
v0.31.0
v0.31.1
v0.32.0
v0.32.1
v0.32.2
v0.33.0
v0.33.1
v0.33.2
v0.34.0
v0.34.1
v0.35.0
v0.35.1
v0.35.2
v0.35.3
v0.35.4
v0.35.5
v0.36.0
v0.36.1
v0.36.2
v0.36.3
v0.36.4
v0.36.5
v0.4.0
v0.4.1
v0.4.2
v0.5.0
v0.5.1
v0.5.2
v0.6.0
v0.6.1
v0.7.0
v0.7.1
v0.7.2
v0.7.3
v0.7.4
v0.8.0
v0.8.1
v0.8.2
v0.8.3
v0.9.0
v0.9.1
v0.9.2
v0.9.3
v0.9.4
v0.9.5
v0.9.6
${ noResults }
go-libp2p/options_filter.go
36 lines
1.2 KiB
36 lines
1.2 KiB
package libp2p
|
|
|
|
import (
|
|
"github.com/libp2p/go-libp2p/core/connmgr"
|
|
"github.com/libp2p/go-libp2p/core/control"
|
|
"github.com/libp2p/go-libp2p/core/network"
|
|
"github.com/libp2p/go-libp2p/core/peer"
|
|
|
|
ma "github.com/multiformats/go-multiaddr"
|
|
)
|
|
|
|
// filtersConnectionGater is an adapter that turns multiaddr.Filter into a
|
|
// connmgr.ConnectionGater.
|
|
type filtersConnectionGater ma.Filters
|
|
|
|
var _ connmgr.ConnectionGater = (*filtersConnectionGater)(nil)
|
|
|
|
func (f *filtersConnectionGater) InterceptAddrDial(_ peer.ID, addr ma.Multiaddr) (allow bool) {
|
|
return !(*ma.Filters)(f).AddrBlocked(addr)
|
|
}
|
|
|
|
func (f *filtersConnectionGater) InterceptPeerDial(p peer.ID) (allow bool) {
|
|
return true
|
|
}
|
|
|
|
func (f *filtersConnectionGater) InterceptAccept(connAddr network.ConnMultiaddrs) (allow bool) {
|
|
return !(*ma.Filters)(f).AddrBlocked(connAddr.RemoteMultiaddr())
|
|
}
|
|
|
|
func (f *filtersConnectionGater) InterceptSecured(_ network.Direction, _ peer.ID, connAddr network.ConnMultiaddrs) (allow bool) {
|
|
return !(*ma.Filters)(f).AddrBlocked(connAddr.RemoteMultiaddr())
|
|
}
|
|
|
|
func (f *filtersConnectionGater) InterceptUpgraded(_ network.Conn) (allow bool, reason control.DisconnectReason) {
|
|
return true, 0
|
|
}
|
|
|