Unverified Commit 94fb0526 authored by copilot-swe-agent[bot]'s avatar copilot-swe-agent[bot] Committed by GitHub
Browse files

Fix bugs 18 and 28: multi-homed interface detection and XHR abort

parent bcffb1e9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -730,7 +730,7 @@ getInfo() {
    [ -d "/sys/class/net/net2" ] && VM_NET_DEV="net2"
    [ -d "/sys/class/net/net3" ] && VM_NET_DEV="net3"
    # Automatically detect the default network interface
    [ -z "$VM_NET_DEV" ] && VM_NET_DEV=$(awk '$2 == 00000000 { print $1 }' /proc/net/route)
    [ -z "$VM_NET_DEV" ] && VM_NET_DEV=$(awk '$2 == 00000000 { print $1; exit }' /proc/net/route)
    [ -z "$VM_NET_DEV" ] && VM_NET_DEV="eth0"
  fi

+4 −0
Original line number Diff line number Diff line
@@ -24,6 +24,10 @@ function getInfo() {
    var url = "msg.html";

    try {
        if (request) {
            request.abort();
        }

        if (window.XMLHttpRequest) {
            request = new XMLHttpRequest();
        } else {