Commit Graph

9 Commits (a0a0942804855aa6d2adc0a67504be6c758dafa9)

Author SHA1 Message Date
Jason Rhinelander f2fede2dfe Remove broken split() method
This function has a bug when `last` returns npos (which then fails an
assertion in a debug build).

Rather than fixing it, it seemed easier just to remove it and rely on
the split() version that does almost exactly the same thing but takes a
string_view delimiter.
3 years ago
Jeff Becker a24b82119b
fix #1655
* make it so that we don't set up unbound resolver when we have no resolvers provided by config
* clean up dns codepath and make it use llarp::SockAddr instead of llarp::IpAddress
3 years ago
Jason Rhinelander e2f96631a6 Fix SockAddr test code
Exception error messages changed and broke tests

Also adds two test cases for the separate string/port constructor.
4 years ago
Rick V 918a09c0cf fix sockaddr win32 and collapse headers on the unix side 4 years ago
Jason Rhinelander bc4573c447 Disable empty string SockAddr throw test
The code intentionally no longer throws and handles this as a special
case (resulting in an empty SockAddr).
4 years ago
Stephen Shelton 174c9ec740
log-- 4 years ago
Stephen Shelton 78d09f2ae5
Support SockAddr in from sockaddr and friends 4 years ago
Stephen Shelton e944bcb28a
Unit tests and fixes for SockAddr::fromString() 4 years ago
Stephen Shelton 0b54087689
Begin implementing SockAddr 4 years ago