개정판 7405922f
issue #000: GetUserSign 에서 domain check 추가
Change-Id: Idc3c6f67492dc4cdf0fd79b04beb8ba66cdc5a6f
MarkupToPDF/Common/GetUserSign.cs | ||
---|---|---|
47 | 47 |
_binding.SendTimeout = new TimeSpan(0, 5, 0); |
48 | 48 |
_binding.TextEncoding = System.Text.Encoding.UTF8; |
49 | 49 |
_binding.TransferMode = TransferMode.Buffered; |
50 |
string localdomain = CommonLib.Common.GetConfigString("HOST_DOMAIN", "DOMAIN", ""); |
|
51 |
|
|
52 |
var hostEntry = CommonLib.DNSHelper.GetHostEntryTask(); |
|
53 |
|
|
54 |
if (hostEntry == null) |
|
55 |
{ |
|
56 |
System.Diagnostics.Debug.WriteLine("(hostEntry == null"); |
|
57 |
isExternal = true; |
|
58 |
} |
|
59 |
else if (!hostEntry.HostName.EndsWith(localdomain)) |
|
60 |
{ |
|
61 |
// 외부 사용자 |
|
62 |
isExternal = true; |
|
63 |
} |
|
50 | 64 |
|
51 | 65 |
string sBaseServiceURL = CommonLib.Common.GetConfigString("BaseClientAddress", "URL", "", isExternal); |
52 | 66 |
//CommonLib.Common.GetConfigString("BaseClientAddress", "URL", ""); |
내보내기 Unified diff