diff options
author | Volker Lendecke <vlendec@samba.org> | 2003-11-07 10:12:43 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2003-11-07 10:12:43 +0000 |
commit | 91e61843d7775c3dad6c6fafd60367d5f5967287 (patch) | |
tree | 341d6e2c91a1b37aadf2145f1436a1a3a1d263a9 /source3/lib/substitute.c | |
parent | 99cbab5c3b2fa9af822415a24832892e869f1d3e (diff) | |
download | samba-91e61843d7775c3dad6c6fafd60367d5f5967287.tar.gz samba-91e61843d7775c3dad6c6fafd60367d5f5967287.tar.bz2 samba-91e61843d7775c3dad6c6fafd60367d5f5967287.zip |
From 3_0:
Implement %i-Macro for the locally used IP address. With this you can again
have virtual hosts with different configurations on a single smbd even on port
445.
Volker
(This used to be commit 3a5130f231a0fd6f7490d3b028361ff0458bfae1)
Diffstat (limited to 'source3/lib/substitute.c')
-rw-r--r-- | source3/lib/substitute.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/substitute.c b/source3/lib/substitute.c index 923afd989f..ee342964d0 100644 --- a/source3/lib/substitute.c +++ b/source3/lib/substitute.c @@ -363,6 +363,9 @@ void standard_sub_basic(const char *smb_name, char *str,size_t len) case 'I' : string_sub(p,"%I", client_addr(),l); break; + case 'i' : + string_sub(p,"%i", client_socket_addr(),l); + break; case 'L' : if (local_machine_name && *local_machine_name) string_sub(p,"%L", local_machine_name,l); |