diff options
author | Christopher Dumas <christopherdumas@gmail.com> | 2019-05-26 10:14:03 -0700 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-27 21:40:53 +0200 |
commit | c23882dde1f8a46f82b599ece5bb4b59606d030b (patch) | |
tree | 549ca3ad885aab8706ef2ff489f5b5b1558d9a33 /Servers/LookupServer | |
parent | 50154a23cbd51f72eeb199b8b56acfa8d7bb694a (diff) | |
download | serenity-c23882dde1f8a46f82b599ece5bb4b59606d030b.zip |
can now tile background and made sure the IRC choose server popup still works
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; |