Derrick Hammer
|
6510beddf2
|
refactor: switch to using structs.SetImpl
|
2024-03-14 06:53:31 -04:00 |
Derrick Hammer
|
804f124632
|
feat: create a hashset subclass with a rwlock
|
2024-03-14 06:51:44 -04:00 |
Derrick Hammer
|
83f71df029
|
fix: use Lock
|
2024-03-11 17:51:00 -04:00 |
Derrick Hammer
|
fadbd7c37e
|
fix: use RUnlock
|
2024-03-11 17:48:50 -04:00 |
Derrick Hammer
|
605b6a6a09
|
fix: add lock to GetChallenge
|
2024-03-11 17:48:27 -04:00 |
Derrick Hammer
|
7173abb54f
|
fix: use Lock
|
2024-03-11 17:47:56 -04:00 |
Derrick Hammer
|
1ecbda1a54
|
fix: use RLock
|
2024-03-11 17:45:57 -04:00 |
Derrick Hammer
|
2bb558f878
|
refactor: add a rw mutex lock to all getter/setter methods
|
2024-03-11 17:40:09 -04:00 |
Derrick Hammer
|
cd50bf0b39
|
refactor: add a rw mutex lock to all getter/setter methods
|
2024-03-11 17:38:24 -04:00 |
Derrick Hammer
|
90d78d310e
|
feat: add /s5/p2p/peers endpoint
|
2024-03-11 17:24:21 -04:00 |
Derrick Hammer
|
db5716f3a3
|
fix: return sre
|
2024-03-11 16:33:33 -04:00 |
Derrick Hammer
|
d2b2fa09e3
|
fix: set forwarded ip before checking for a blocked connection
|
2024-03-11 16:08:47 -04:00 |
Derrick Hammer
|
3cce024829
|
chore: add debug logging gor registry query and set
|
2024-03-11 11:50:27 -04:00 |
Derrick Hammer
|
ee6f140b7e
|
fix: add logging of peer ip and the node id signing the message if handshake is not done
|
2024-03-10 09:17:13 -04:00 |
Derrick Hammer
|
bb1b43958a
|
refactor: use clientIP and pass in a wrapped net.IPAddr
|
2024-03-10 09:09:29 -04:00 |
Derrick Hammer
|
195abfdf20
|
fix: missing SetIP
|
2024-03-10 08:57:32 -04:00 |
Derrick Hammer
|
2a6c661b49
|
refactor: set the ip if we have a forwarded address
|
2024-03-10 08:55:55 -04:00 |
Derrick Hammer
|
fc31653050
|
refactor: add SetIP and optionally return it if it exists in the ws peer
|
2024-03-10 08:54:22 -04:00 |
Derrick Hammer
|
45a483989c
|
fix: check X-Real-IP and X-Forwarded-For
|
2024-03-10 08:40:44 -04:00 |
Derrick Hammer
|
71cb44dc61
|
fix: check TCPAddr and log error on closing connection, then abort
|
2024-03-10 07:38:44 -04:00 |
Derrick Hammer
|
1f8d383da7
|
fix: prevent websocket loopback connections
|
2024-03-10 07:24:48 -04:00 |
Derrick Hammer
|
4db7430abe
|
feat: implement GetIP as a net.Addr
|
2024-03-10 07:19:49 -04:00 |
Derrick Hammer
|
5f5b522e68
|
refactor: change GetIP to GetIPString
|
2024-03-10 07:16:37 -04:00 |
Derrick Hammer
|
48ef3e3a2a
|
fix: require a handshake for announcement messages
|
2024-03-10 06:46:18 -04:00 |
Derrick Hammer
|
438e76dfb8
|
feat: add config level blocklist support
|
2024-03-09 13:12:22 -05:00 |
Derrick Hammer
|
42fa773b52
|
refactor: allow nested buckets
|
2024-03-09 07:15:54 -05:00 |
Derrick Hammer
|
0e82207cde
|
fix: use pointer methods
|
2024-03-09 07:11:53 -05:00 |
Derrick Hammer
|
3bd336b000
|
fix: update ServiceParams for db
|
2024-03-09 07:00:12 -05:00 |
Derrick Hammer
|
c9fe8a0819
|
feat: implement new kv database package starting with bbolt
|
2024-03-09 06:46:48 -05:00 |
Derrick Hammer
|
cc2964e80f
|
feat: split off meta parsing to ParseMetadata
|
2024-03-07 16:53:55 -05:00 |
Derrick Hammer
|
fc212ef246
|
fix: > not >=
|
2024-03-05 15:21:47 -05:00 |
Derrick Hammer
|
8f32074667
|
refactor: switch ConnectToNode to use a retries counter and make it configurable via P2PConfig
|
2024-03-05 15:13:25 -05:00 |
Derrick Hammer
|
a87bfe7ba6
|
fix: ErrTransportNotSupported check in wrong location
|
2024-03-05 15:06:42 -05:00 |
Derrick Hammer
|
cca7d881de
|
fix: if ErrTransportNotSupported, then just log and return the error, don't bother blocking
|
2024-03-05 15:01:59 -05:00 |
Derrick Hammer
|
397ed0d6ec
|
refactor: make no transport error an exported error we can test on
|
2024-03-05 15:01:22 -05:00 |
Derrick Hammer
|
701386c05d
|
fix: set the username to the peer id for all connection uris
|
2024-03-05 14:13:22 -05:00 |
Derrick Hammer
|
5fcf99d97e
|
fix: if we dont get a 200, increase the retry count to prevent a possible infinite loop
|
2024-03-05 13:11:56 -05:00 |
Derrick Hammer
|
e2d79c0357
|
fix: pass nil for pk on SignRegistryEntry
|
2024-03-03 13:02:42 -05:00 |
Derrick Hammer
|
4023d99838
|
fix: MarshalRegistryEntry should optionally take pk so it can work both for marshall and signing
|
2024-03-03 12:52:59 -05:00 |
Derrick Hammer
|
ad7880edbe
|
fix: MarshalRegistryEntry needs to pack the public key after the record type byte
|
2024-03-03 12:42:45 -05:00 |
Derrick Hammer
|
cab059e82a
|
fix: use original data not the version with the message type stripped, so we don't need to shift the offset math in UnmarshalSignedRegistryEntry
|
2024-03-03 12:25:27 -05:00 |
Derrick Hammer
|
56d5ab5e6b
|
Revert "fix: use record type, not hash type"
This reverts commit 4004dd98c9 .
|
2024-03-03 12:16:51 -05:00 |
Derrick Hammer
|
4004dd98c9
|
fix: use record type, not hash type
|
2024-03-03 12:12:45 -05:00 |
Derrick Hammer
|
c6aa2cf4a2
|
fix: Get needs to actually return the entry
|
2024-03-03 11:26:44 -05:00 |
Derrick Hammer
|
15d0999fdf
|
fix: store and use by ref
|
2024-03-03 11:00:34 -05:00 |
Derrick Hammer
|
e6c6ea473c
|
refactor: we do not need to bother storing our own ProviderStore data as that would just duplicate any possible data coming from the ProviderStore.
|
2024-03-03 09:30:40 -05:00 |
Derrick Hammer
|
73dc22a71e
|
refactor: add a local param to StorageService.GetCachedStorageLocations so we don't spam the local provider store on every poll
|
2024-03-03 09:28:33 -05:00 |
Derrick Hammer
|
8c4ebeccd4
|
fix: need to init underlying map
|
2024-03-03 07:16:24 -05:00 |
Derrick Hammer
|
a5e5e76e37
|
fix: need to encode size of paths
|
2024-03-03 05:34:27 -05:00 |
Derrick Hammer
|
59b9e24238
|
fix: wm.ErrorPages needs to be passed by ref
|
2024-03-03 05:22:31 -05:00 |