File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 4
4
"flag"
5
5
"fmt"
6
6
"net"
7
+ "os"
7
8
"regexp"
8
9
"strings"
9
10
"time"
@@ -188,6 +189,11 @@ func ConfigLoad() {
188
189
// Set up logging as soon as possible
189
190
setupLogger ()
190
191
192
+ if * versionInfo {
193
+ fmt .Printf ("smtprelay/%s (%s)\n " , appVersion , buildTime )
194
+ os .Exit (0 )
195
+ }
196
+
191
197
if * remotesStr == "" && * command == "" {
192
198
log .Warn ("no remotes or command set; mail will not be forwarded!" )
193
199
}
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package main
3
3
import (
4
4
"bytes"
5
5
"crypto/tls"
6
- "fmt"
7
6
"net"
8
7
"net/textproto"
9
8
"os"
@@ -282,11 +281,6 @@ func getTLSConfig() *tls.Config {
282
281
func main () {
283
282
ConfigLoad ()
284
283
285
- if * versionInfo {
286
- fmt .Printf ("smtprelay/%s (%s)\n " , appVersion , buildTime )
287
- os .Exit (0 )
288
- }
289
-
290
284
log .WithField ("version" , appVersion ).
291
285
Debug ("starting smtprelay" )
292
286
You can’t perform that action at this time.
0 commit comments