config changed for ws address

main
jiyoungcheon 4 weeks ago
parent 044ad18c17
commit 5d78c215d2

@ -17,15 +17,10 @@ type AppInfo struct {
type Urls struct {
FailedDataListUrl string `xml:"FailedDataListUrl"`
NockChiServer NockChiServer `xml:"NockChiServer"`
NockChiServerUrl string `xml:"NockChiServerUrl"`
TAUrl string `xml:"TAUrl"`
}
type NockChiServer struct {
Port string `xml:"port,attr"`
SrcIP string `xml:"srcIP,attr"`
}
type Speech struct {
Package string `xml:"Package"`
ProtoPackage string `xml:"ProtoPackage"`

@ -234,11 +234,9 @@ func PostReqForEachVoiceFile(reqDataForVoiceFile FailedDataListReqBody) (respons
func SendSTTResToNockChiServer(parsedRes FailedDataListReqBody, sttRes string, dir string) *icserror.IcsError {
url := conf.Urls.NockChiServer.SrcIP
headers := http.Header{
"Origin": {"https://192.168.0.69"},
}
conn, _, err := websocket.DefaultDialer.Dial(url, headers)
url := conf.Urls.NockChiServerUrl
conn, _, err := websocket.DefaultDialer.Dial(url, nil)
if err != nil {
l.Println("[ERR] client.go>SendSTTResToNockChiServer()> connecting websocket failed. err: %v", err)
return icserror.ICSERRWEBSOCKETConnectFailError

Loading…
Cancel
Save