Remove localhost hack

This commit is contained in:
Eelco Dolstra 2015-09-09 16:50:59 +02:00
parent ee9bf7ace7
commit 6075ac6fed

View file

@ -165,7 +165,7 @@ void State::buildRemote(std::shared_ptr<StoreAPI> store,
unsigned int version = readInt(from); unsigned int version = readInt(from);
if (GET_PROTOCOL_MAJOR(version) != 0x200) if (GET_PROTOCOL_MAJOR(version) != 0x200)
throw Error(format("unsupported nix-store --serve protocol version on %1%") % machine->sshName); throw Error(format("unsupported nix-store --serve protocol version on %1%") % machine->sshName);
if (GET_PROTOCOL_MINOR(version) >= 1 && machine->sshName != "localhost") // FIXME if (GET_PROTOCOL_MINOR(version) >= 1)
sendDerivation = false; sendDerivation = false;
} catch (EndOfFile & e) { } catch (EndOfFile & e) {