diff options
Diffstat (limited to 'Servers/LookupServer')
-rw-r--r-- | Servers/LookupServer/Makefile | 2 | ||||
-rw-r--r-- | Servers/LookupServer/main.cpp | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Servers/LookupServer/Makefile b/Servers/LookupServer/Makefile index b85335b4d5..da9bb8b7f9 100644 --- a/Servers/LookupServer/Makefile +++ b/Servers/LookupServer/Makefile @@ -11,7 +11,7 @@ DEFINES += -DUSERLAND all: $(APP) $(APP): $(OBJS) - $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lc + $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lc -lcore .cpp.o: @echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $< diff --git a/Servers/LookupServer/main.cpp b/Servers/LookupServer/main.cpp index 09637982b3..2deaf273ea 100644 --- a/Servers/LookupServer/main.cpp +++ b/Servers/LookupServer/main.cpp @@ -13,6 +13,7 @@ #include <AK/BufferStream.h> #include "DNSPacket.h" #include "DNSRecord.h" +#include <LibCore/CConfigFile.h> #define T_A 1 #define T_NS 2 @@ -35,8 +36,8 @@ int main(int argc, char**argv) auto config = CConfigFile::get_for_system("LookupServer"); dbgprintf("LookupServer: Using network config file at %s.\n", - config->file_name().view().characters()); - const String& DNS_IP = config->read_entry("DNS", "IPAddress", "127.0.0.53"); + config->file_name().characters()); + auto DNS_IP = config->read_entry("DNS", "IPAddress", "127.0.0.53"); HashMap<String, IPv4Address> dns_cache; |