]> git.saurik.com Git - cycript.git/blobdiff - Handler.cpp
Output a smaller representation of true and false.
[cycript.git] / Handler.cpp
index 4f11b7baba3daa68f1145d72b3a90958a1271fb3..30ea4f4fc5ef6715c551f414d42cc25f5a290fbf 100644 (file)
@@ -218,6 +218,9 @@ struct CYServer {
 
     void Listen() {
         socket_ = _syscall(::socket(PF_INET, SOCK_STREAM, 0)); try {
+            int value;
+            _syscall(::setsockopt(socket_, SOL_SOCKET, SO_REUSEADDR, &(value = 1), sizeof(value)));
+
             sockaddr_in address;
             address.sin_family = AF_INET;
             address.sin_addr.s_addr = INADDR_ANY;