]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Adjustin procedure dns_is_domain_local
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sat, 21 Jun 2025 23:21:08 +0000 (19:21 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sat, 21 Jun 2025 23:21:08 +0000 (19:21 -0400)
lib/modrec.c
lib/unidns.c
lib/unitls.c

index 18a7d1b4d4499cde696e7e159061b3b4e60cd1bb..fc3ffaeba32fc6bff385f27f1cc53a6204f1695f 100644 (file)
@@ -81,7 +81,7 @@ for (int i=0;i<argc;i++) {
       case 1    :
         if (strlen(ptr)>0)
           ipnum=ptr;
-        (void) rou_alert(0,"JMPDBG ipnum[%s]",ipnum);
+        (void) rou_alert(0,"%s JMPDBG ipnum[%s]",OPEP,ipnum);
         break;
       case 2    :
         if (strlen(ptr)>0) 
index 2b645829cef76da85db76091de08ccb5587bdbef..6336129e2155d50edc8f7fa81d8f63ca53e0376e 100644 (file)
@@ -506,8 +506,14 @@ while (proceed==true) {
       break;
     case 3      :       //checking best MX with local interface
       while (*afns!=(AFNTYP *)0) {
-        if (dns_matchiprec((*dns)->mxname,*afns,32)==true) {
+        _Bool ismx;
+
+        ismx=dns_matchiprec((*dns)->mxname,*afns,32);
+        (void) rou_alert(0,"%s mxname=<%s> anfn=[%s] ismx='%d'",
+                            OPEP,(*dns)->mxname,(*afns)->strnumip,ismx);
+        if (ismx==true) {
           status=dns_local;
+          break;
           }
         afns++;
         }
index 3cc60ead6ed46327c9f7e4e4db0efd918f258acc..db360892adc9a125a09344beab10fc42a5c5fb5e 100644 (file)
@@ -183,7 +183,7 @@ mode=SSL_VERIFY_NONE;
 phase=0;
 proceed=true;
 while (proceed==true) {
-  (void) rou_alert(7,"%s phase='%d'",OPEP,phase);
+  //(void) rou_alert(7,"%s JMPDBG phase='%d'",OPEP,phase);
   switch (phase) {
     case 0      :       //loading certificate names
       for (int i=0;i<(sizeof(cenv)/sizeof(char *));i++) {
@@ -677,7 +677,7 @@ tls=(TLSTYP *)0;
 phase=0;
 proceed=true;
 while (proceed==true) {
-  (void) rou_alert(6,"%s phase='%d', serveur='%d'",OPEP,phase,server);
+  //(void) rou_alert(6,"%s JMPDBG phase='%d', serveur='%d'",OPEP,phase,server);
   switch (phase) {
     case 0      :       //prepare the structure first;
       tls=(TLSTYP *)calloc(1,sizeof(TLSTYP));