reverting the hack way of getting around IP addresses in tests
This needs to happen so that this will merge cleanly with the nice way of doing it in other branches.
This reverts commit 30af9622f3b0631f7046ec784ef34290573ea886.
diff --git a/aos/linux_code/configuration.cc b/aos/linux_code/configuration.cc
index a8cc4ae..6c39a93 100644
--- a/aos/linux_code/configuration.cc
+++ b/aos/linux_code/configuration.cc
@@ -23,20 +23,6 @@
// TODO(brians): Don't hard-code this.
const char *const kLinuxNetInterface = "eth0";
const in_addr *DoGetOwnIPAddress() {
- static const char *kOverrideVariable = "FRC971_IP_OVERRIDE";
- const char *override_ip = getenv(kOverrideVariable);
- if (override_ip != NULL) {
- LOG(INFO, "Override IP is %s\n", override_ip);
- static in_addr r;
- if (inet_aton(override_ip, &r) != 0) {
- return &r;
- } else {
- LOG(WARNING, "error parsing %s value '%s'\n", kOverrideVariable, override_ip);
- }
- } else {
- LOG(INFO, "Couldn't get environmental variable.\n");
- }
-
ifaddrs *addrs;
if (getifaddrs(&addrs) != 0) {
LOG(FATAL, "getifaddrs(%p) failed with %d: %s\n", &addrs,