Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,10 @@ private void setConnectionStatic(NetworkConfig config) {
return;
}

// guess at the gateway from the staticIp
// Default gateway handed out by the VH-109 DHCP server is 10.TE.AM.4
// https://docs.wpilib.org/en/stable/docs/networking/networking-introduction/ip-configurations.html#on-the-field-dhcp-configuration
String[] parts = config.staticIp.split("\\.");
parts[parts.length - 1] = "1";
parts[parts.length - 1] = "4";
String gateway = String.join(".", parts);

var shell = new ShellExec();
Expand Down
Loading