X-Git-Url: http://git.megabrutal.com/?p=mgsmtp.git;a=blobdiff_plain;f=Relay.pas;fp=Relay.pas;h=bcbcc9d92ee6842c5de66b050df69c6890e949e1;hp=3df2b330ca14ec3d79d61d5200980f7f74597ded;hb=c4973242121d1319638cb836a39da4e6bbe064f6;hpb=f189f43099c2d791510b42da006b6599a8bb009b diff --git a/Relay.pas b/Relay.pas index 3df2b33..bcbcc9d 100644 --- a/Relay.pas +++ b/Relay.pas @@ -333,9 +333,8 @@ begin if MXList.Count >= 1 then begin TCP:= TTCPRFCConnection.Create; TCP.SetBindAddress(MainServerConfig.BindAddress); - TCP.Connect(MXList.Strings[0], RelayServerPort); TCP.SetSockTimeOut(DEF_SOCK_TIMEOUT); - i:= 1; + i:= 0; while (not TCP.Connected) and (i < MXList.Count) do begin TCP.Connect(MXList.Strings[i], RelayServerPort); Inc(i);