Commit Graph

19 Commits

Author SHA1 Message Date
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 195abfdf20
fix: missing SetIP 2024-03-10 08:57:32 -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 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 13ca22d80e
fix: prevent channel closed panic 2024-01-15 19:34:11 -05:00
Derrick Hammer 1b6925c296
refactor: change abused to abuser 2024-01-15 13:50:04 -05:00
Derrick Hammer 7d34ac37db
fix: flag abused before closing 2024-01-15 13:40:41 -05:00
Derrick Hammer 944067522a
feat: add abused to peer so we can know when a peer has abused us and not log errors for them 2024-01-15 13:36:13 -05:00
Derrick Hammer fc10a265a7
feat: implement GetIP 2024-01-15 11:15:11 -05:00
Derrick Hammer 1fe2940fc4
refactor: send every message in a coroutine and manage errors in a dedicated channel 2024-01-08 12:08:15 -05:00
Derrick Hammer 0028483817
refactor: use lowercase socket 2024-01-07 06:47:19 -05:00
Derrick Hammer 52b7426a7a
refactor: change how we manage peers, create getter/setters on Peer/BasePeer, and refactor WebSocketPeer to use new ws package and add Connect/NewPeer 2024-01-07 06:33:32 -05:00
Derrick Hammer 8c29a284ce
feat: wip networking 2024-01-06 06:34:15 -05:00