mirror of
https://git.robbyzambito.me/zaprus/
synced 2026-02-04 03:34:48 +00:00
doing some shenanigans
trying to start writing my own function to do raw socket connections
This commit is contained in:
@@ -82,8 +82,8 @@ fn parseDest(in: ?[]const u8) [4]u8 {
|
||||
return res;
|
||||
}
|
||||
|
||||
const addr = std.net.Ip4Address.parse(dest, 0) catch return "FAIL".*;
|
||||
return @bitCast(addr.sa.addr);
|
||||
const addr = std.Io.net.Ip4Address.parse(dest, 0) catch return "FAIL".*;
|
||||
return addr.bytes;
|
||||
}
|
||||
return "zap\x00".*;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user